Comment on N-queen puzzle in 4 lines of ScalaparentComments−ionforce10yThe lack of whitespace is maddening. It contributes to the reputation that Perl is write once read never.That "print and return with postfix" is the gold star. /s−tyingq10yThe context being a deliberate effort to make it compact. You can abuse features in most languages and make it hard to read.−ionforce10yWho cares about "compactness"? You weren't golfing. It just sticks out as bad code.−tyingq10yNot my code, it was copied (note the attribution) from a specific context where somebody cared about compactness.Edit: Perl's also not the only language that supports the comma operator, predicate if, ternary, and other things that seem to bother you.
Comments
The lack of whitespace is maddening. It contributes to the reputation that Perl is write once read never.
That "print and return with postfix" is the gold star. /s
The context being a deliberate effort to make it compact. You can abuse features in most languages and make it hard to read.
Who cares about "compactness"? You weren't golfing. It just sticks out as bad code.
Not my code, it was copied (note the attribution) from a specific context where somebody cared about compactness.
Edit: Perl's also not the only language that supports the comma operator, predicate if, ternary, and other things that seem to bother you.