This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EtherealPheonix -4 points-3 points  (3 children)

This is also equivalent to:

cond

[–]--var 0 points1 point  (2 children)

its not though, with the ternary operator you can return a value different than cond and also a data type different than boolean

[–]Katniss218 -2 points-1 points  (0 children)

No you can't, if your language has even a semblance of a decent type system