5 ms·
How are if-expressions different from the conditional operator? I thought one was a concrete implementation of the other.
by recursive 3y ago
How are if-expressions different from the conditional operator? I thought one was a concrete implementation of the other.
- djur 3y ago"if" comes before the condition, "?" comes after. For a lot of people this seems to significantly improve readability.