General

Profile

esad (Esad Hajdarevic)

  • Login: esad
  • Registered on: 04/22/2024
  • Last sign in: 09/03/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 4 5

Activity

09/15/2024

05:42 PM Ruby master Feature #20742 (Open): Trying to assign to a variable in statement modifier should emit a warning
There is an example in Control Expressions documentation:
```
p a if a = 0.zero? # raises NameError “undefined lo...
esad (Esad Hajdarevic)

09/04/2024

09:04 PM Ruby master Feature #16378: Support leading arguments together with ...
Is there a reason why this doesn't work with keyword arguments too?
For example:
```
def foo(bar:, ...)
oth...
esad (Esad Hajdarevic)

09/03/2024

12:12 PM Ruby master Feature #20712: module should return newly defined module
Ok I was too quick on this one. module keyword returns last expression in the block, so just ending module declaratio... esad (Esad Hajdarevic)
12:04 PM Ruby master Feature #20712 (Closed): module should return newly defined module
Currently module keyword returns nil after defining a new module:
```
x = module Foo
end
# x is nil
```
It ...
esad (Esad Hajdarevic)

07/10/2024

10:16 AM Ruby master Bug #20623 (Closed): Unexpected behavior of blocks in Enumerator::Lazy#zip
I've stumbled upon unexpected behaviour of lazy enumerators. My example:
```
[1].cycle.lazy.zip([2].cycle.lazy).m...
esad (Esad Hajdarevic)

04/26/2024

12:27 PM Ruby master Bug #20459 (Closed): Ractor.select() deadlock?
When I run this script
```
echo = Ractor.new { Ractor.receive }
Thread.new { puts Ractor.select(echo).inspect ...
esad (Esad Hajdarevic)
10:07 AM Ruby master Feature #20444: Kernel#loop: returning the "result" value of StopIteration doesn't work when raised directly
nobu (Nobuyoshi Nakada) wrote in #note-9:
> That example does not need `Ractor`.
Yes, you are right, it actually ...
esad (Esad Hajdarevic)

04/24/2024

11:00 AM Ruby master Feature #20444: Kernel#loop: returning the "result" value of StopIteration doesn't work when raised directly
ufuk (Ufuk Kayserilioglu) wrote in #note-7:
> @esad If you just want to return a result from the `loop`, you can use ...
esad (Esad Hajdarevic)
09:07 AM Ruby master Feature #20444: Kernel#loop: returning the "result" value of StopIteration doesn't work when raised directly
nobu (Nobuyoshi Nakada) wrote in #note-3:
> I'm curious what your use case is.
>
> Although I don't know the reas...
esad (Esad Hajdarevic)

04/23/2024

06:21 AM Ruby master Feature #20444: Kernel#loop: returning the "result" value of StopIteration doesn't work when raised directly
nobu (Nobuyoshi Nakada) wrote in #note-1:
> `StopIteration.new(3)` does not set `result`, and no way to set it in Ru...
esad (Esad Hajdarevic)

Also available in: Atom