Re: RFC 98 (v1) context-based method overloading
[email protected] (Graham Barr) Tue, 15 Aug 2000 11:38:07 +0100
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 14, 2000 at 10:00:17PM -0500, David L. Nicol wrote: > > > > It will run faster, because it doesn't have to evaluate > the want(). I am not so sure. Many subs that test want() do it after running common code. Now you will either have to duplicate code between the subs (thats bad) or extract that code into a common sub and have the extra sub call as an overhead. There may be a few cases where it may be a win, but I suspect they are in the minority. Graham.