3 ms·
Can't return in a ternary.
by andreareina 6y ago
Can't return in a ternary.
- amelius 6y agoCorrect, return is not an expression. But then again, he could if he wanted to, as the language designer ;)
- Maken 6y agoMaybe it was not worth the extra work.
- Koshkin 6y agoWouldn't it be wonderful if we could write a = return b;
- colejohnson66 6y agoWhat would that even do? Return b, but then set b to a right before “deleting” a? That would serve no purpose.