DEV Community

Discussion on: If/else or just if?

Collapse
 
tyrw profile image
Tyler Warnock

Well which one is more "readable"? 🤔😎

Collapse
 
ozeta profile image
Marco Carrozzo

As our phylosophy teacher used to say: we are debating about angels gender... Anyway I think I stick more for the first one. I work in Java and there is a plenty of other situation to use one-liners.