On 03/31/2010 05:32 PM, Daniel Schwen wrote:
>> I could be worse, It could be Math in Javascript:
>> v = (011 + "1" + 0.1)/3;
>> 303.3666666666667
> 
> Somebody ought to slap you for mixing four different types in such a
> horrendous manner to construct something that is supposed to make
> people who do not understand octal numbers and string concatenation to
> think JavaScript is insane. *shakes head*

The point should stand even if there's faulty reasoning:

([8, 32, 189].sort()[0]) === (new Boolean(false) ? 189 : 8)

Conrad

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to