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

Re: postfix dereference syntax

Thread Previous | Thread Next
Aristotle Pagaltzis
July 3, 2013 15:48
Re: postfix dereference syntax
Message ID:
* David Golden <> [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.

Aristotle Pagaltzis // <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About