> 
> I've recently come to the conclusion that I like my get/set methods to
> look like:
> 
>     method foo() { $.foo }
>     method set_foo($self: $new_foo) { $.foo = $new_foo; $self }
> 
> (Perl6 syntax obviously). I hope it's going to be possible to set that
> up automagically... (Yeah, I know, if/when Perl 6 gets macros...)

I suspect that there might be a module that would allow you to change how
Perl 6 autogenerates attribute accessors.

Damian

Reply via email to