RubyNext 0.11.0: Ruby 3.0 support and shorthand kwarg syntax
This RubyNext release is dedicated to the upcoming release of Ruby 3.0.
RubyNext now supports Ruby 3.0 new syntax features: endless methods, find pattern for pattern matching, single-line pattern matching (a => x
and a in x
).
As a bonus, we also extended the proposed shorthand Hash syntax to support kwargs in method calls as well:
x = 1
y = 2
foo x:, y: #= foo x: x, y: y
Post a comment