Re: es5 bug, operator == and valueOf

2010-12-01 Thread Jason Orendorff
On Wed, Dec 1, 2010 at 2:45 AM, Peter van der Zee wrote: > Has an operator like >== ever been proposed? So the "strict" relational > operator that returns NaN if typeof left and right don't match. > If so, why was it shot down? Bloat? Relatively useless? Well, > is used more often than >=. How wo

Re: es5 bug, operator == and valueOf

2010-12-01 Thread Peter van der Zee
Has an operator like >== ever been proposed? So the "strict" relational operator that returns NaN if typeof left and right don't match. If so, why was it shot down? Bloat? Relatively useless? - peter On Wed, Dec 1, 2010 at 1:45 AM, Brendan Eich wrote: > On Nov 30, 2010, at 3:25 PM, Fyodorov Bga

Re: es5 bug, operator == and valueOf

2010-11-30 Thread Brendan Eich
On Nov 30, 2010, at 3:25 PM, Fyodorov Bga Alexander wrote: > @apipkin have found logic bug > `{valueOf: function(){ return 1 }} == {valueOf: function(){ return 1 }}` > // false > `{valueOf: function(){ return 1 }} >= {valueOf: function(){ return 1 }}` > // true, ok This is not a bug in ES5, altho

es5 bug, operator == and valueOf

2010-11-30 Thread Fyodorov "Bga" Alexander
@apipkin have found logic bug `{valueOf: function(){ return 1 }} == {valueOf: function(){ return 1 }}` // false `{valueOf: function(){ return 1 }} >= {valueOf: function(){ return 1 }}` // true, ok -- Alexander. ___ es-discuss mailing list es-discuss@mozi