Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Is auto-dereferencing worth forcing upgrades to newer versions of Perl?

by xdg (Monsignor)
on Aug 20, 2013 at 00:23 UTC ( #1050105=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Is auto-dereferencing worth forcing upgrades to newer versions of Perl?
in thread Is auto-dereferencing worth forcing upgrades to newer versions of Perl?

And it works right now.

Not in core, it doesn't. (Though I wish it did.)

But anyway, you're missing (or intentionally misdirecting) the point that the justification is not technical, but aesthetic.

And what do you care? If you don't like a given feature (and there's no global performance cost involved in implementing it in the first place), just don't use it.

Some people like new features and some don't. Some like evolution and some like stability. Fine.

My point was that these are individual decisions to be made by individual developers. Expecting "everyone" or "no one" to use a given feature is unrealistic. There's an adoption curve. It happens. No big deal.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.


Comment on Re^3: Is auto-dereferencing worth forcing upgrades to newer versions of Perl?
Re^4: Is auto-dereferencing worth forcing upgrades to newer versions of Perl?
by BrowserUk (Pope) on Aug 20, 2013 at 00:49 UTC
    Not in core, it doesn't. (Though I wish it did.)

    Wish granted.

    Really, it does:

    #! perl -slw use strict; package Thing; sub new { bless [], $_[0] }; sub push { push @{ shift() }, @_ } package main; use Data::Dump qw[ pp ]; my %x = ( foo => [ map Thing->new, 1 .. 10 ] ); $x{foo}[0]->push( 1,2,3 ); pp \%x; __END__ C:\test>junk66 { foo => [ bless([1, 2, 3], "Thing"), bless([], "Thing"), bless([], "Thing"), bless([], "Thing"), bless([], "Thing"), bless([], "Thing"), bless([], "Thing"), bless([], "Thing"), bless([], "Thing"), bless([], "Thing"), ], }

    That's 5.10, but it's worked right back to 5.6.1 (and probably before, but that's before my time with Perl.)

    (And if aesthetics is the current, important criteria for the future of Perl5, there are plenty of other areas that definitely rate attention long before this.)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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 doesn't work on unblessed references, which is what the auto-deref feature does work on. (I thought you were referring to autobox.)

      -xdg

      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
        (I thought you were referring to autobox.)

        No. I wouldn't touch autobox with yours let alone my own :)


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        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://1050105]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-11-26 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (165 votes), past polls