Ruby 3.4.0 Released
Posted by naruse on 25 Dec 2024
We are pleased to announce the release of Ruby 3.4.0. Ruby 3.4 adds it block parameter reference,
change Prism as default parser, adds Happy Eyeballs Version 2 support to socket library, improves YJIT,
adds Modular GC, and so on.
it is introduced
it is added to reference a block parameter with no variable name. [Feature #18980]
ary = ["foo", "bar", "baz"]
p ary.map { it.upcase } #=> ["FOO", "BAR", "BAZ"]
it very much behaves the same as _1. When the intention is t...
Read more at ruby-lang.org