The generator sure could do this for the programmer; I'm also pretty sure we will see idioms akin to Perl5's AUTOLOAD+eval on-the-fly generation of accesors soon after Perl6 enters the stage. It doesn't seem like something that must be solved on the language level, provided the knobs and dials are there to do this in streamlined fashion from the source end. And what I've read so far makes me hopeful that this will be the case.
“Proxying” the sub (I think that's the wrong term) as you show is probably fine for trivial cases, but somehow it doesn't feel to me like you'll get far with that if the sub does anything even remotely complex.
Makeshifts last the longest.
In reply to Re^12: Experimenting with Lvalue Subs
by Aristotle
in thread Experimenting with Lvalue Subs
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |