4 ms·
Someone on twitter asked me about that convention too - the best explanation I could find was that it's from C, where the compiler will warn you if you have a p
by caiusdurling 14y ago
Someone on twitter asked me about that convention too - the best explanation I could find was that it's from C, where the compiler will warn you if you have a plain `if (foo = "bar")` in case you typo'd it. But putting double parens around it makes the compiler stop warning you, as you've intended the code to be that way by using a double parens. - http://stackoverflow.com/questions/3323257/double-parentheses-in-sample-code/3323400#3323400 http://stackoverflow.com/questions/3323257/double-parenthese... was the explanation I linked on twitter about it.