General

Profile

artemb (Artem Borodkin)

  • Login: artemb
  • Registered on: 02/19/2024
  • Last sign in: 02/12/2026

Issues

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

Activity

02/12/2026

08:28 PM Ruby Feature #21822: Expose Return Value in the ensure Block

> ```
> ...
For me, ensure => ret looks cleaner, reduces cognitive overhead, and is simply easier on the eyes when reviewing real code.
The structure is easier to parse visually, and the intent is clearer compared to the alternativ...
artemb (Artem Borodkin)

01/03/2026

10:11 AM Ruby Feature #21822 (Open): Expose Return Value in the ensure Block

I'd like to propose a simple feature that allows easy access to the return value inside an ensure block.
```ruby
begin
# ...
ensure => ret
# ret is nil if an exception is raised
LOGGER.debug "return value: #{ret}"
en...
artemb (Artem Borodkin)

11/28/2024

04:56 PM Ruby Feature #20914: Constructor Parameter Shortcuts
Thank you! This appears to be literally the same proposal, so it can be closed.
I will review #5825 and follow for updates.
artemb (Artem Borodkin)
05:57 AM Ruby Feature #20914: Constructor Parameter Shortcuts
You’re absolutely right; this part does seem ambiguous. I initially added it as an empty block, modeled after the short syntax, like this:
```ruby
def initialize(name, age, email = nil) = (@name, @age, @email = name, age, email)
```
Wh...
artemb (Artem Borodkin)

11/27/2024

10:20 PM Ruby Feature #20914 (Closed): Constructor Parameter Shortcuts
# Constructor Parameter Shortcuts
I propose adding a new syntax to simplify the constructor definition in the classes. Defining a constructor often involves repetitive assignments of parameters to instance variables. This pattern is v...
artemb (Artem Borodkin)

10/10/2024

11:21 AM Ruby Feature #20793: Allow Multiple Arguments for the .is_a? Method
Eregon (Benoit Daloze) wrote in #note-2:
> I think pattern matching should be used here instead
Very nice, thank you!
If kind_of? (and alias is_a?) has a strong implementation optimization, I agree that this is not so important enhanc...
artemb (Artem Borodkin)
08:50 AM Ruby Feature #20793 (Rejected): Allow Multiple Arguments for the .is_a? Method
I propose allowing multiple arguments to be passed to the .is_a? Method imply "OR" semantics:
``` ruby
name.is_a? String, Symbol
```
Currently, we need to write the following to achieve the same functionality:
``` ruby
[Str...
artemb (Artem Borodkin)

02/19/2024

01:40 PM Ruby Feature #11446: Possible work around for the requirement to supplying arguments like this: .map(&:method, <arguments>)

Are there any proposal issues regarding the addition of argument and block support for the ```.each(&:method, args) do; end``` syntax?
It seems quite feasible to support it natively.
``` ruby
module Enumerable
def each_call...
artemb (Artem Borodkin)

Also available in: Atom