And there is nothing really WAT about it. Just part of rather simple Erlang language grammar.
And there is nothing really WAT about it. Just part of rather simple Erlang language grammar.
If you'd dismiss the above, then I guess one could also argue that JavaScript returning an empty string on `[] + []` is also not a wat moment, but just part of the JavaScript grammar.
[0] http://kevincantu.org/code/operators.html
[1] http://www.tutorialspoint.com/python/operators_precedence_ex...
Similar to the fact that shell and perl swap == versus eq; that causes me no end of confusion switching between the two.
Though nothing will ever be as upsetting as the period when I used QBASIC at school and BBC BASIC at home. Number of times my attempts to use COLOUR compiled first time? Not even once.
I've personally seen several (flags & MASK != VALUE) bugs make it to the field. Sometimes it's worked for ages as the 0th bit was part of what was being tested.
Whilst adding more brackets can be useful to explain things, there comes a point when you have too much parenthesis. You have to rely at least a little on operator precedence, so you really do need to learn it.