Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by blazar (Canon)
on Aug 26, 2007 at 14:39 UTC ( [id://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.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://635132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-19 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found