develooper Front page | perl.perl5.porters | Postings from July 2013

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
July 3, 2013 15:48
Subject:
Re: postfix dereference syntax
Message ID:
20130703154816.GE21195@fernweh.plasmasturm.org
* David Golden <xdg@xdg.me> [2013-07-03 17:25]:
> Damn. I forgot about that in my excitement about parallelism.

Personally I wouldn’t mind this Perl4ism getting rooted out eventually.
It’s an ugly feature from an era past – ugly even in its time, when it
had necessity going for it.

> I think echoing current slice syntax could be the way out of the
> general conundrum, even if string interpolation doesn't work easily:
>
>    $array->@[ qw/foo bar baz/ ]
>    $hash->@{ qw/foo bar baz/ }

… aaaand that’s essentially back to what RJBS proposed.

Which will do, in a pinch, but is _*noisy*_ – I’d not be super happy if
there was no better alternative, even though that would still be better
than nothing.

I think the way out of this conundrum is to weigh the options slowly and
carefully rather than just toss out the first thing that seems like it
should work… so personally I don’t want to make any counterproposal yet.
This is a big feature in very little space, and an important one.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About