The right wards assign syntax is another weird Ruby bad take:
fib(10) => x
Think this is a lambda? Nope. This means x = fib(10). I really enjoy Ruby and wrote it as my primary language for many years, but I’m regularly disappointed by the choices of the maintainers.
x = fib(10)
With all the other syntax bits they added in the last few releases, it feels like they’re just throwing syntax at the wall to see what sticks. I’ve written lots of Ruby years ago but with all these new things they’re adding I wonder if I could read Ruby code written today and understand what it does without having to constantly look things up.
Most of the things added (like pattern matching) are quite niche. The endless methods are nice I guess, and quite similar to syntax in other languages.
Nice alternative syntax for Elixir!
I am greatly looking forward to RBS, but am sure will be some time before I am using 3.0 at $WORK. I will likely start a few backlogged toy projects, from a grab-bag that I would normally ignore, just for the excuse to experience RBS.
You can run it on Heroku today! https://twitter.com/schneems/status/1309582573044027392