4 ms·
I highly agree, especially about the if/else. The more I code, the more I try to elimante branching. If statements as expressions would be ideal.
by nathancahill 10y ago
I highly agree, especially about the if/else. The more I code, the more I try to elimante branching. If statements as expressions would be ideal.
- qznc 10y agoMost mainstream languages (C, Java, etc) have this. The ternary operator ?:
- 35bge57dtjku 10y agoThat's like farting in the bathtub and calling it a hot tub.
- tigershark 10y agoWhy? It is an expression, not a statement regardless of your farting nonsense.
- 35bge57dtjku 10y agoBecause they aren't the same thing.