|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^4: why not listed foreach and if?by GrandFather (Saint) |
| on Feb 02, 2025 at 20:16 UTC ( [id://11163917]=note: print w/replies, xml ) | Need Help?? |
|
Actually JavaScript and most C like languages don't see the difference between if (<condition>) <statement> and if (<condition>) <block> because a <block> can go anywhere a <statement> can go. Interestingly, and the point of difference here is, Perl requires a <block> in many places where more Cish languages are happy with just a <statement>.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||