brendan at mozilla.org
Tue Sep 9 23:29:43 PDT 2008
On Sep 9, 2008, at 11:09 PM, Mark S. Miller wrote:
> On Tue, Sep 9, 2008 at 9:51 PM, Brendan Eich <brendan at mozilla.org>
>>> 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,
More information about the Es-discuss