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

Re: what would you like to see in perl5.12?

by blazar (Canon)
on Aug 26, 2007 at 14:39 UTC ( #635132=note: print w/ replies, xml ) Need Help??


in reply to what would you like to see in perl5.12?

Another late addition from a previous idea: bring some functionality from Scalar::Util into core ref by having the latter return, in list context, respectively: REF, ADDR, BLESSED, where

  • REF would be ref()'s current output if the reference is not blessed, and if it is then the same as if it were not,
  • ADDR the same as refaddr()'s and
  • BLESSED the package the reference is blessed in, if it is, or undef otherwise.


Comment on Re: what would you like to see in perl5.12?
Select or Download Code
Replies are listed 'Best First'.
Re^2: what would you like to see in perl5.12?
by ysth (Canon) on Aug 26, 2007 at 19:51 UTC
    Hmm. Not sure that would be worth it, given the possibility of foo(ref($bar), "baz"), etc.

      Yes you're perfectly right. One should see how much existing codebase is affected. Perhaps it should have been there from start. In any case I can see that p5p would hardly risk even if they found the feature as desirable as I do. But... if that's "what I would like to see in Perl (5.12)" ... well, this is one such thing!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (17)
As of 2015-07-30 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls