In JavaScript the ';' is not required and a human parsing JavaScript can easily misunderstand how the code will be interpreted if they are used.
In Perl I do:
if (condition) { ... }
unless both the condition and the statement (note - just one statement) are simple and short. Perl allows me to use either construct.
In reply to Re^2: why not listed foreach and if?
by GrandFather
in thread why not listed foreach and if?
by vincentaxhe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |