General

Profile

zverok (Victor Shepelev)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 21 63 84

Activity

04/09/2021

09:02 AM Ruby master Bug #17789: Incompatible behavior of Enumarator::Lazy#with_index
It doesn't ignores the block. It is just lazy to perform it :)
```ruby
%w(a).lazy.with_index { |s, i| puts "#{s} ...
zverok (Victor Shepelev)

04/08/2021

03:23 PM Ruby master Feature #17785: Allow named parameters to be keywords
We actually can:
```ruby
def check(arg, class:)
arg.is_a?(binding.local_variable_get('class'))
end
```
[Here]...
zverok (Victor Shepelev)

02/17/2021

11:10 AM Ruby master Misc #17637: Endless ranges with `nil` boundary weird behavior
I believe that using `nil` as a signifier of the "open end" is a compromise due to Ruby's ranges polymorphism. You ca... zverok (Victor Shepelev)

02/15/2021

07:18 AM Ruby master Misc #17499: Documentation backporting
@usa
> You should create the backport ticket on redmine (this site) as "Bug" tracker and "Closed" status, with "R...
zverok (Victor Shepelev)

02/10/2021

09:39 AM Ruby master Bug #17619: if false foo=42; end creates a foo local variable set to nil
To the best of my understanding, `if` doesn't create its own scope with its own local variables. So this `if` means f... zverok (Victor Shepelev)
09:32 AM Ruby master Feature #7394: Enumerable#find ifnone parameter could be non-callable
What's the point of the "default value" as compared to just `find { ... } || default`?
* Would it be more performa...
zverok (Victor Shepelev)

02/06/2021

10:47 AM Ruby master Feature #15504: Freeze all Range objects
> if I want to check was called refined method or core?
It actually might be a good feature proposal for Ruby. Bec...
zverok (Victor Shepelev)

01/26/2021

09:04 PM Ruby master Feature #15504: Freeze all Range objects
@AlexWayfer
https://github.com/AlexWayfer/gorilla_patch/blob/master/lib/gorilla_patch/cover.rb#L8 -- may be for th...
zverok (Victor Shepelev)

01/24/2021

09:31 AM Ruby master Feature #17330: Object#non
@nobu
> This seems readable enough and more flexible.
```ruby
return Faraday.get(url).then {_1.body if _1.succ...
zverok (Victor Shepelev)

01/23/2021

04:41 PM Ruby master Feature #17330: Object#non
@matz Thinking a bit more about it, what I frequently lack is a "singular reject": "drop this value if it doesn't mat... zverok (Victor Shepelev)

Also available in: Atom