On 2007-11-14, at 00:35 EST, Brendan Eich wrote: > At this point cue Alex Russell to argue for something I proposed > earlier, but didn't push hard enough: optional method bodies for > interfaces, for generic programming and default implementation code- > sharing.
Actually, I think that was me. The thread is titled "Interfaces without implementation are like a day without sunshine". Eventually, Dave Herman convinced me that what I wanted was properly called `mixin`, not `trait`, and not `interface`. The OpenLaszlo Compiler/ Framework supports `mixin` as a 'power tool' -- we acknowledge that they are dangerous if mis-used. _______________________________________________ Es4-discuss mailing list Es4-discuss@mozilla.org https://mail.mozilla.org/listinfo/es4-discuss