Russell Leggett <russell.legg...@gmail.com> wrote: > https://gist.github.com/genericallyloud/7086380
Very interesting. > // 4. use the default if available what's "the default" in #4? The protocol's default? What's the behavior if no matching method is found? Also, can anyone explain why this solves the performance problem scoped object extensions have? It still seems like it would have to check the environment for protocols and then check the methods on all available protocols and do type matching to the type of the method. `Collections.extend(Array)` seems awfully similar to an array extensions, how does the `::` operator resolve the need for expensive lookup, can you explain that to me?
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss