Earlier quoted context omitted.
This is the exact reason I've wanted this, for a long time. I even asked Matz about it a conference once, probably 10-ish years ago.
This is a completely unnecessary feature. `_` is always assigned to the value of the previous expression. >> 4 + 2 => 6 >> _ => 6 >> "abc" + "def" => "abcdef" >> _ => "abcdef Adding this kind of syntax for something that's already trivial to do is honestly kind of distressing for me as a Ruby developer who's been around since early 1.8. I still strongly believe that the `key: value` hash syntax was a massive mistake.…
[1]: https://github.com/ruby/irb/blob/master/lib/irb/context.rb#L...