News for hackers. Stuff that matters.
Re:Ruby adds experimental support for Rightward assignments by rubyn00bie on Friday September 04, 2020 @03:36AM (#24372638)
Does sort of make a hash in Ruby more confusing to the untrained eye (unless the hash rocket is totally dead, I haven't written Ruby since like the 2.3 days):

{ "age" => age, "name" => name }

I like the idea a lot. It'd probably allow for some nice functional looking code, but that's also the problem... it'd only look functional. And I think without VM/compiler/runtime support of functional programming it's pretty much a big waste of time.

I can use piece shit for a shoehorn; doesn't mean I should.

Re:Ruby adds experimental support for Rightward assignments by Tainnor on Friday September 04, 2020 @05:58AM (#24373469)
No, the hash rocket still exists. However, if you use symbols as keys, you can replace ":foo => bar" with "foo: bar". Many people, of course, use hashes with symbols as keys, but whenever you don't, you still need to use the hashrocket syntax.