On Thu, Jul 18, 2013 at 4:34 PM, Andy Earnshaw <[email protected]> wrote: > It's potentially a breaking change, because > > 0 < 1 < 1 > > evaluates to false in current implementations because > > (0 < 1) < 1
Luckily, this is false in the chained operations too, since "(0 < 1) && (1 < 1)" evaluates to false. One problem is that in current Javascript, the equality and the comparison operators are at different precedence levels. Python puts them at the same level, so that chaining can be purely left-to-right. There's a decent chance that code does indeed depend on this, due to testing equality of a comparison with a bool (which is stupid, but people do it). ~TJ _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

