3 ms·
Well, this one is not impressive, but I find it useful for C-like languages, Java included: if (5 == somevar) { .... If you accidentally write "=", you'll
by narag 16y ago
Well, this one is not impressive, but I find it useful for C-like languages, Java included:
if (5 == somevar) { ....
If you accidentally write "=", you'll notice.
- Jach 16y agoMany compilers (gcc and mxmlc come to mind) simply warn you if you try to do "if (somevar = 5)" and suggest an extra set of parenthesis to shut up the warning, if that's really what you wanted. Python throws a syntax error.