Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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

by jdporter (Canon)
on Mar 03, 2003 at 14:38 UTC ( #240038=note: print w/replies, xml ) Need Help??

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

There's also a special place in heaven for those who understand why it makes sense for Perl6 to have given/when.

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

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

Replies are listed 'Best First'.
given/when in Perl 6
by logan (Curate) on Mar 03, 2003 at 18:30 UTC
    OK, I'll bite. What's a given/when and why is it important?

    "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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240038]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-02-25 05:48 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (365 votes). Check out past polls.