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

Re: Revising Perl's OO docs - a new OO tutorial

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
March 6, 2011 18:35
Subject:
Re: Revising Perl's OO docs - a new OO tutorial
Message ID:
55843E42-00B0-4B5D-AAC6-F66E506ED334@cpan.org
Jesse Vincent wrote:
> On Sun, Mar 06, 2011 at 10:28:34PM +0100, Johan Vromans wrote:
>> Peter Scott <Peter@PSDT.com> writes:
>> 
>>> I am disappointed that after all this time we have no consensus on how
>>> to say in Perl "Class X has attribute Y" when so many other languages
>>> have solutions that have freed their users' minds up to move on to
>>> higher-level problems.
>> 
>> +1
> 
> I'd love to see proposals (soon) for how we might do this in the core
> for 5.16 or 5.18. I'm not promising I'll _accept_ one of them, but I'd
> love to see us actually discuss such a thing.

If we do add object attributes to Perl, it would be very nice if we could use ‘$obj->attr = $foo’ syntax, instead of $obj->attr($foo), which is currently widely used mainly because the former is so hard to do (that can change, of course).


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