> When I see those empty arrayrefs, I think "delegate to *no* methods in
> those classes stored in attr3 and att4," rather than "delegate all
> method calls to those attributes." Just in the name of greater clarity,
> I might like to see something like URI suggested:
>
> attr3 => [ALL]
It was (and is) a good suggestion. I suspect however that it should be
attr3 => [__ALL__]
so that classes can still have an C<ALL> method delegated.
(Yes, now they can't have an C<__ALL__> method,
but maybe that's a Good Thing ;-)
> Or perhaps (to borrow from SQL and to ignore the question of typeglobs
> for the moment):
>
> attr3 => [*]
Read my lips: No New Syntax!
;-)
> This way, I know that an empty arrayref means "all methods" rather than
> "none."
Kinda redundant since that's the default behaviour, but perhaps useful as
a documentation mechanism.
Damian
- RFC 193 (v1) Objects : Core support for method delegat... Perl6 RFC Librarian
- Re: RFC 193 (v1) Objects : Core support for metho... Uri Guttman
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for m... Uri Guttman
- Re: RFC 193 (v1) Objects : Core support for metho... Michael G Schwern
- Re: RFC 193 (v1) Objects : Core support for m... Piers Cawley
- Re: RFC 193 (v1) Objects : Core support for metho... Piers Cawley
- Re: RFC 193 (v1) Objects : Core support for metho... Graham Barr
- Re: RFC 193 (v1) Objects : Core support for metho... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for m... Nathan Wiger
- Re: RFC 193 (v1) Objects : Core support for m... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core support for m... Damian Conway
- Re: RFC 193 (v1) Objects : Core support f... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core suppo... David L. Nicol
- Re: RFC 193 (v1) Objects : Core ... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core ... Damian Conway
- Re: RFC 193 (v1) Objects : Core support f... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for m... David E. Wheeler
