News for hackers. Stuff that matters.
Re:Ruby 3.4.0 by Maledictus on Thursday December 26, 2024 @06:46AM (#42514669)
Still looks much less beautiful. Python feels to me like it can't make up its mind.
Re:Ruby 3.4.0 by int_19h on Thursday December 26, 2024 @04:25PM (#42517942)
I'll take "properly generalized" over "looks beautiful" any time. At the end of the day, the purpose of the code is to do something, not to be pretty.

FWIW you can have both in this case; you just need to make dotted method calls syntactic sugar for global function invocations.

Re:Ruby 3.4.0 by rakoo on Thursday December 26, 2024 @06:10PM (#42518596)
And some will say the exact opposite: contrary to what would seem obvious, code is primarily meant to be read by humans, then written by humans. Because you'll spend way more time unfucking code than actually spitting it.