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 16:20
Subject:
Re: postfix dereference syntax
Message ID:
20130703162041.GB22642@fernweh.plasmasturm.org
* Kent Fredric <kentfredric@gmail.com> [2013-07-03 18:00]:
> On 4 July 2013 03:09, Aristotle Pagaltzis <pagaltzis@gmx.de> wrote:
> > $foo->bar->baz->{qw( foo bar baz )}
>
> Well, assuming you turned on the ability to use
>
> - new deref syntax
> - new slice syntax
>
> If they eventually arrived together as one feature ( which I see it
> possible of doing ), you could control their scope with a lexical
> pragma, a lexical pragma that disabled multidimensional arrays at the
> same time.
>
> And there is already a cpan module that does the latter =).
>
> https://metacpan.org/module/multidimensional # ilmari++

That is precisely where my thoughts were going. :-)  Just, as I said,
there are a lot more problems that need contemplation first.

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