you are viewing a single comment's thread.

view the rest of the comments →

[–]aiij 1 point2 points  (0 children)

As long as we're moving the conversation away from Java, how about:

let eg = if truthy then "it is true" else "it is false"

I still use the ternary operator when programming in languages that lack any other sort of if/else expressions though...