Re:Ruby adds experimental support for rightward assignments
by choward on Thursday September 10, 2020 @03:04PM
(#24435497)
This is actually one of the things I first liked about Ruby. Then it became one of the main reasons I started disliking Ruby.
Re:Ruby adds experimental support for rightward assignments
by throwaway4007 on Thursday September 10, 2020 @03:57PM
(#24435944)
It seems the opinionated, directive "there's only one way to do it" approach is winning over the hacking around, "wrapping around your mind" approach. Lisp and Perl have had their times under the sun, now it's all about Python and Go. Perhaps these things are cyclical.
Re:Ruby adds experimental support for rightward assignments
by lillesvin on Friday September 11, 2020 @04:48AM
(#24440463)
I'm using both Ruby and Go a lot (also Elixir, PHP, Bash and others).
I wouldn't even say that they solve different problems for me, it's more a matter of how I need the problem solved. If I need something that runs on other OSes than my Linux box preferably with as few dependencies as possible, Go. However, I can probably code it faster in Ruby, so if it only needs to run on my machine or if I know Ruby's available where it needs to be run, then I'll probably go with Ruby.
I think, instead of arguing which is better, the argument should be about whether they're useful. And for both Go and Ruby that's an "absolutely!" from me.
Re:Ruby adds experimental support for rightward assignments
by drusepth on Thursday September 10, 2020 @06:39PM
(#24437294)
I'm just happy that there's still a popular language around that lets me write how I think (or however _I_ think would make the code look the best), so I don't have to suffer through using languages that direct how I have to write every little thing.
Having both options is nice!
I'm not saying it's good or bad, I'm just saying that appears to be one of the reasons for it.