Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Useless unless

by neniro (Priest)
on Aug 06, 2005 at 08:02 UTC ( [id://481458]=note: print w/replies, xml ) Need Help??


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))

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://481458]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found