Erik Steven Harrison wrote:

> I've been playing around with Perl 5.6's lvalue subs. And (though at times 
> irritating to deal with) they're wonderful. It seems to me that the use of an 
> assignment operator is quite clear, and so there is no need for individual method 
> calls for retrieving and setting the attribute.


> Will this exist in Perl 6?

Yes. The attribute C<:lvalue> will become the property C<is rw>.


> In fact, as long as we're mulling over it, will subroutine attributes be
> supported in Perl 6

Yes. Except they'll be called properties.
See: 

        http://dev.perl.org/perl6/apocalypse/2#properties
        http://dev.perl.org/perl6/exegesis/2


> and what kind of changes should we expect?

Slightly different syntax.
More easily user-configurable.
More tightly integrated with the core language.
Greater variety of standard properties available.

Damian

Reply via email to