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

Re: Perl 5.12.0 has been released!

by wazoox (Prior)
on Apr 13, 2010 at 13:52 UTC ( #834493=note: print w/ replies, xml ) Need Help??


in reply to Perl 5.12.0 has been released!

And an awesome new feature, the "yadda yadda" operator :) Kudos everyone!


Comment on Re: Perl 5.12.0 has been released!
Re^2: Perl 5.12.0 has been released!
by BrowserUk (Pope) on Apr 13, 2010 at 14:01 UTC

    Not to be critical, but what is so "awesome" about a less flexible replacement for die('Unimplemented');?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      It finally makes my pseudocode compile:

      print "Step 1"; ... print "Profit!\n";

      :)

      The name of the operator is awesome! Unfortunately it looks like it can't be overloaded, which would have been really useful. Feature request!

        Seems to me that this is more useful:

        BEGIN{ *CORE::GLOBAL::die = sub{ CORE::die( $_[0] //'Unimplemeted' ); +} }

        A bare die (same number of characters), will be converted to Unimplemented at ....

        And it can also be used a sub-statement like open O, '<', 'fred' or die;

        I guess it doesn't have the cache' of ...?


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
      IMHO the ... doesn't make much sense in Perl 5.

      In Perl 6 it is actually not the same as a fail('Unimplemented') - classes that only consist of ... are "stubbed", and you can declare them later on without error:

      # this is fine: class A { ... } # other code here class A { # actually implement A here } # this dies, because class B is re-declared class B { fail('Unimplemented') } # other code here class A { # <-- ERROR # whatever }

      Maybe someday the yada-yada-yada term will throw an error in Perl 5 that's somehow distinct from other errors (like a different exception class), but until that time I don't really see the use.

      Perl 6 - links to (nearly) everything that is Perl 6.
      Not as visible or searchable either, but lexing editors could detect it and create a TODO task for it.

        They might also be triggered by the 1 ... 10. Not that I remember ever using the 3 dot form.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-11-29 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls