Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Useless unlessby neniro (Priest) |
on Aug 06, 2005 at 08:02 UTC ( [id://481458]=note: print w/replies, xml ) | Need Help?? |
I often use 'unless' as statement-modifier. It's one of the syntactic sugars in perl that even made the way into ruby. Of course it's just a negated if-clause, but to me it's more natural and I think that was the idea why Larry put it into perl.
Beside this, where do we stop if we remove such features from perl? Do we get 'yet another context-free language' like python, with it's poor set of terms to express the programmer thoughts?
In Section
Meditations
|
|