DEV Community

Discussion on: Are one-liners always the best solutions?

Collapse
 
mafflerbach profile image
mafflerbach

I prefer in general the "long" version. It's about readability. I may have to read more, but it is more clear what happens, especially when I have to switch between multible languages. The general structure from an if/else or a loop are very similar in all languages, but comes to syntactic sugar it becomes difficult.