General

Profile

bogdanvlviv (Bogdan Denkovych)

  • Login: bogdanvlviv
  • Registered on: 08/23/2016
  • Last sign in: 10/29/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 3 3

Activity

09/26/2020

04:02 PM Ruby Revision cdb5258b (git): Fix `ENV.except`'s docs
bogdanvlviv (Bogdan Denkovych)
11:18 AM Ruby Feature #15831: Add `Array#extract`, `Hash#extract`, and `ENV.extract`
I'm wondering to know whether use-cases, mentioned in https://bugs.ruby-lang.org/issues/15831#note-9, are good enough to reconsider the decision to add these methods to Ruby? bogdanvlviv (Bogdan Denkovych)

07/25/2019

12:16 PM Ruby Bug #16020 (Rejected): Forbid `if` `elsif` without a condition
Hello.
I might have missed something, but examples like:
```ruby
if
puts "!!!!1"
elsif
puts "!!!!2"
elsif
puts "!!!!3"
else
puts "!!!!4"
end
# Output:
# !!!!1
# !!!!2
# !!!!3
# !!!!4
```
```ruby
if false
...
bogdanvlviv (Bogdan Denkovych)

05/24/2019

10:39 AM Ruby Feature #15831: Add `Array#extract`, `Hash#extract`, and `ENV.extract`
> I also concern about the name conflict with the ActiveSupport method.
I guess this comment addressed https://bugs.ruby-lang.org/issues/15863 that adds `Hash#slice!`, right?
Active Support doesn't have any `extract` methods, only `e...
bogdanvlviv (Bogdan Denkovych)

05/22/2019

08:19 PM Ruby Feature #15863: Add `Hash#slice!` and `ENV.slice!`
> Let me see the real-world use-case, please.
Since proposed `Hash#slice!` method is the same as `Hash#extract!` from the Active Support, there is one use-case where we have some `options` then we extract some known by keys options an...
bogdanvlviv (Bogdan Denkovych)
09:52 AM Ruby Feature #15831: Add `Array#extract`, `Hash#extract`, and `ENV.extract`
matz (Yukihiro Matsumoto) wrote:
> I don't think we have seen the use-case that this method is absolutely necessary. I also concern about the name conflict with the ActiveSupport method.
> ...
There are use-cases of `Array#extract` in ...
bogdanvlviv (Bogdan Denkovych)

05/19/2019

09:54 PM Ruby Misc #15782: DevelopersMeeting20190522Japan
* [Feature #15863] Add `Hash#slice!` and `ENV.slice!`(bogdanvlviv)
* I would like to discuss these methods(name, behavior, implementation), and whether we want to add them to Ruby.
* [Feature #15831] Add `Array#extract`, `Hash#extrac...
bogdanvlviv (Bogdan Denkovych)
06:54 PM Ruby Feature #15863 (Rejected): Add `Hash#slice!` and `ENV.slice!`
## Add `Hash#slice!`
In https://bugs.ruby-lang.org/issues/8499 we added `Hash#slice`.
`Hash#slice!` removes and returns the key/value pairs matching the given keys:
```ruby
h = {a: 100, b: 200, c: 300}
h.slice!(:a) # => {:a=>1...
bogdanvlviv (Bogdan Denkovych)

05/18/2019

02:45 PM Ruby Feature #15831: Add `Array#extract`, `Hash#extract`, and `ENV.extract`
I just changed the implementation of `Hash#extract` and `ENV::extract` as it's described in the previous note https://bugs.ruby-lang.org/issues/15831#note-4 bogdanvlviv (Bogdan Denkovych)

05/14/2019

09:24 PM Ruby Feature #15831: Add `Array#extract`, `Hash#extract`, and `ENV.extract`
nobu (Nobuyoshi Nakada) wrote:
> Why `Array#extract` has no argument but takes a block, while `Hash` and `ENV` are opposite?
I implemented those methods to mirror similar behavior as it is in Active Support, but I also feel like we...
bogdanvlviv (Bogdan Denkovych)

Also available in: Atom