Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
XP is just a number
 
PerlMonks  

Re^3: RFC: Defined-Or for before Perl 5.10

by eyepopslikeamosquito (Canon)
on Oct 30, 2010 at 05:42 UTC ( #868427=note: print w/ replies, xml ) Need Help??


in reply to Re^2: RFC: Defined-Or for before Perl 5.10
in thread RFC: Defined-Or for before Perl 5.10

He names the patch files starting with "dor". Would that be a better name than "defined_or"?
I personally prefer "dor" to "defined_or". Actually, I quite like Larry's original "err" -- though the majority of P5P seemed to prefer "dor", based on some long P5P threads. To be "consistent" with Perl 6, you might even consider "orelse".

Note that while the // "defined or" operator was added to Perl 5.10, the low precedence version of this operator was not. AFAICT, this low precedence operator morphed from err to dor to orelse; orelse is in Perl 6 as a similar, but not identical, low precedence version of //, but it's not in Perl 5 and I'm not aware of any plans to add it. See also this Larry response on perl6-language mailing list.


Comment on Re^3: RFC: Defined-Or for before Perl 5.10
Select or Download Code
Re^4: RFC: Defined-Or for before Perl 5.10
by JavaFan (Canon) on Oct 30, 2010 at 07:40 UTC
    Actually, IIRC, for quite a while, 5.9.x *had* err, and it was culled not to long before 5.10 came out due to some backwards compatability issues noone seemed to be able to resolve.

      I'm actually quite happy that the 5.8.x series is out of maint now. Maintaining those patches was quite a lot of work.

      Note that those patches still add the err keyword to perl.

      The disadvantage of those patches over the proposal of a module/function, is that it is inside the perl binary, and all has to be recompiled from scratch.


      Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-04-20 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (487 votes), past polls