Re:"Useless Ruby sugar": Endless (one-line) methods
by progne on Friday December 01, 2023 @12:02PM
(#38489076)
I agree that it shouldn't be used for anything complex, even if it reduces to one line. But I do like it for simple things. Maybe it's staring at very similar code all day, but such short statements read fluently for me.
And even if an extra line of separation is used, it's still 6 lines instead of 11.
I'd recommend your team to stop code-golfing... Even better: with this new syntax you MUST reduce the soft limit to around 50 lines per class, right?