loading...

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

TOP OF THREAD FULL DISCUSSION
re: I actually like the Kotlin syntax that uses the if/else keywords instead of ?/: val max = if (a > b) a else b It's much more readable t...
 

That's interesting. I didn't know some languages did it that way.

 
 

This is valid in all languages where if else are an expression instead of statement: Python, Rust, Scala, Kotlin, Haskell,F#....

Code of Conduct Report abuse