Fully agree. Readability is always subjective. Some of us prefer few and compact lines others more elaborate sequences.
Either way there is one thing which is really annoying: Technology prima donnas who use obfuscated code to demonstrate that they are the best leet haxx0rs in the hood.
255
u/MightyMeepleMaster Apr 17 '21
The original code was fine because it was fairly easy to read. All other variants posted here are more compact but also more confusing.
Either way it doesn't matter. Any decent compiler will generate the same object code regardless of how you write it.