> It will run faster, because it doesn't have to evaluate
> the want(). (97,98) doesn't invalidate the current way of doing
> things, it just gives a new way.
Seems like it would have to evaluate the want() either way. Either in
the sub prototype:
@ sub { } # want @
$ sub { } # want $
or in the sub body:
sub { want 'ARRAY' ? @array : $scalar }
I don't see a speed advantage. At least not enough to justify a whole
new sub syntax (with new core hooks, basically an embedded 'want', etc,
etc).
New features are cool, but not at the expense of bloat. I don't want a 5
MB Perl executable just for something that's already (more?) easily done
another way. :-)
-Nate
- RFC 98 (v1) context-based method overloading Perl6 RFC Librarian
- Re: RFC 98 (v1) context-based method overloading Ask Bjoern Hansen
- Re: RFC 98 (v1) context-based method overload... Chaim Frenkel
- Re: RFC 98 (v1) context-based method over... Nathan Wiger
- Re: RFC 98 (v1) context-based method ... David L. Nicol
- Re: RFC 98 (v1) context-based me... Nathan Wiger
- Re: RFC 98 (v1) context-based me... Graham Barr
- Re: RFC 98 (v1) context-based me... Nick Ing-Simmons
- Re: RFC 98 (v1) context-based method overloading Hildo Biersma
- Re: RFC 98 (v1) context-based method overload... David L. Nicol
- Re: RFC 98 (v1) context-based method overloading Ken Fox
- Re: RFC 98 (v1) context-based method overloading John Porter
