http://qs1969.pair.com?node_id=481458


in reply to Useless unless

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?

Replies are listed 'Best First'.
Re^2: Useless unless
by MonkOfAnotherSect (Sexton) on Aug 09, 2005 at 03:28 UTC
    Do we get 'yet another context-free language' like python, with it's poor set of terms to express the programmer thoughts?

    print "Stop " + "trolling%s"%(chr((60+60)%87))