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

Re: Why views are useful, and why their syntax doesn't matter much

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
July 11, 2011 06:38
Subject:
Re: Why views are useful, and why their syntax doesn't matter much
Message ID:
20110711133845.GA19735@klangraum.plasmasturm.org
* Reverend Chip <rev.chip@gmail.com> [2011-07-11 04:05]:
> On 7/10/2011 5:15 PM, Father Chrysostomos wrote:
> > I can’t speak for Perl 6, but making something read-only in
> > Perl 5 just feels un-Perl-5-ish.
>
> Perl 5 has to evolve

But when is that an actual necessity, and when is it merely an
excuse for muddling through without careful thought?

> and Perl 5 has always had some read-only things. Or are you
> suggesting that   ${\3.14159}   should be mutable?  :)

Yes it should be. It isn’t now, because that would mutate the
value in the optree, but that’s exposing an implementation detail
that users should not have to care about. It should just yield
a mutable value by whatever means necessary, and leave users not
to have to care.

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