On Sep 9, 2008, at 11:09 PM, Mark S. Miller wrote: > On Tue, Sep 9, 2008 at 9:51 PM, Brendan Eich <[EMAIL PROTECTED]> > wrote: >>> I have also assumed the existence of a "static" Function.apply which >>> takes the function to be applied as an explicit first argument. >> >> This was part of ES4 and it's in JS1.7+ in Firefox. > > Since the function constructor is itself a kind of function, this > overloading breaks Liskov substitutability.
LSP is not preserved by many cases in OO languages. Is it important here? If so, could you suggest a fix (a new name for Function.apply is ducking the issue; Object.apply seems misplaced). Thanks, /be _______________________________________________ Es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

