Re:Ruby One-Liners
by anonytrary on Saturday September 14, 2019 @02:02AM
(#20969181)
You're not being pedantic. The term "one-liner" is a misnomer. In many languages, whether or not a program can fit on a single line is a pointless metric, since a program can be rewritten into a single line (e.g. with semicolons or commas). People use the term "one-liner" as if it meant "concise code" which isn't necessarily true. It would be more accurate to just say "concise code".
[ Parent
| on HN ]