in reply to Re: why not listed foreach and if?
in thread why not listed foreach and if?
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.
|
---|