Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: There's a level in Hell reserved for ________

by Anonymous Monk
on Mar 03, 2003 at 06:27 UTC ( #239959=note: print w/ replies, xml ) Need Help??


in reply to Re: There's a level in Hell reserved for ________
in thread There's a level in Hell reserved for ________

people who don't understand why it never made sense for Perl to have a switch statement.

If this is the case {grin}, why is it the case?

Why does Switch exist?

Why is Perl6 going to have Given/When?


Comment on Re: Re: There's a level in Hell reserved for ________
Re: Re: Re: There's a level in Hell reserved for ________
by jdporter (Canon) on Mar 03, 2003 at 14:38 UTC
    There's also a special place in heaven for those who understand why it makes sense for Perl6 to have given/when.

    jdporter
    The 6th Rule of Perl Club is -- There is no Rule #6.

      OK, I'll bite. What's a given/when and why is it important?

      -Logan
      "What do I want? I'm an American. I want more."

        given/when is a switch on steroids. Rather than C's rather anemic "check against an integer value", it provides full smart matching semantics, very much like Damian's Switch module, on which it's based.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-12-23 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (135 votes), past polls