Protocol library as alternative to refinements (Russell Leggett)

Benjamin (Inglor) Gruenbaum inglor at gmail.com
Tue Oct 22 11:34:24 PDT 2013


On Tue, Oct 22, 2013 at 8:10 PM, Russell Leggett <russell.leggett at gmail.com>
 wrote:

> > Revised algorithm:
> 1. If receiver has protocol method symbol as a property, use that as
override.
> 2. Try to use protocol methods - start by checking receiver type mapping,
then check up type hierarchy for any matches, and finally if no matches,
use the default if defined.
> 3. Finally, if no matches and no default, check prototype for method of
same name.
> Does that sound better?

Much :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131022/1f786e3b/attachment.html>


More information about the es-discuss mailing list