4 ms·
How is it syntactic sugar? It's just applying "10" to the first parameter of "==".
by seanparsons 10y ago
How is it syntactic sugar? It's just applying "10" to the first parameter of "==".
- deleted 10y ago[deleted]
- dllthomas 10y agoWithout parentheses, == is infix. (== 10) is an "operator section", and applies 10 to the second parameter of ==. (10 ==) would be the first parameter.
- seanparsons 10y agoAh yes, very true.