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

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

Thread Previous | Thread Next
Father Chrysostomos
March 6, 2011 18:35
Re: Revising Perl's OO docs - a new OO tutorial
Message ID:
Jesse Vincent wrote:
> On Sun, Mar 06, 2011 at 10:28:34PM +0100, Johan Vromans wrote:
>> Peter Scott <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About