LSP (was Re: Function.prototype.bind) [offtopic]
david.hopwood at industrial-designers.co.uk
Wed Sep 10 18:43:27 PDT 2008
Graydon Hoare wrote:
> Mark S. Miller wrote:
>> [LSP] still a good design rule ...
As stated ("... the behavior of P is unchanged ..."), it's too strong.
It should have been stated in terms of a subtype refining the
specification of a supertype.
> Oh goodness, don't say that while the type theorists are in the room!
Indeed. ES3 has exactly one type, and it has no name.
More information about the Es-discuss