loading...

re: What do you think about the ternary operator? VIEW POST

FULL DISCUSSION
 

It's like an if-else in Scala, that returns a value. Nothing wrong with that, it's just that ? : is not intuitive to read. But if used carefully, and not just showing off how smart you are ;-) it can actually improve readability.

code of conduct - report abuse