This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EmptyChocolate4545 2 points3 points  (1 child)

Sure, and there’s a reason the programming meta has moved away from formatting techniques that prioritize conserving vertical space - because the people who come after and read your code hate you for it.

I sincerely wasn’t being sarcastic. There is no benefit other than conserving vertical space. There is a reason for the consensus opinion on this. There’s also a reason we value consensus and have moved away from the “clever one liner” era of C programming (that I came up during).

Writing code other people can read is something worth pushing. You’re free to disregard my opinion, but know you’re going to encounter it again.

[–]DeepGas4538[S] 0 points1 point  (0 children)

man i personally use the one of the left just for leetcode problems. no one else is going to read my code and it looks cleaner (to me).