News for hackers. Stuff that matters.
Re:Ruby adds experimental support for Rightward assignments by ericpauley on Thursday September 03, 2020 @10:24PM (#24371146)
To me this seems like a clear loss. The syntax is (as far as I can tell) strictly more verbose than the existing assignment syntax. Ruby is already plagued by a million-and-one ways to do everything, but at least in other cases simplicity (à la zen of Python) trades off for brevity.
Re:Ruby adds experimental support for Rightward assignments by drusepth on Friday September 04, 2020 @07:36PM (#24380021)
I don't particularly like the idea of rightward assignment (although the syntax itself seems fine to me), but the "million-and-one ways to do everything" is the biggest reason I strongly prefer the language over more "constrained/limited" languages like Python. In those terms, this seems like a definite win for the language (and those who choose to use it) for me.
Re:Ruby adds experimental support for Rightward assignments by dhagz on Friday September 04, 2020 @09:43AM (#24374834)
I don't even care about the verbosity - it's just ugly syntax. If I'm skimming a file that uses that syntax, I could easily get confused and think there's a comparison going on. One of Ruby's big draws (to me, at least) is code that is incredibly expressive and code that is aesthetically pleasing to look at. I feel this is serving the expressiveness at huge cost to aesthetics, and honestly there's not much gain to expressiveness in my opinion.

EDIT: I also completely forgot about the existing hashrocket syntax for maps.

Re:Ruby adds experimental support for Rightward assignments by baash05 on Saturday September 05, 2020 @07:55AM (#24382942)
+ 100
Re:Ruby adds experimental support for Rightward assignments by eejjjj82 on Friday September 04, 2020 @07:51AM (#24374097)
+100