On 20-02-2013, at 18:44 , Etienne Bergeron etienne.bergeron@gmail.com wrote:
Ruby and Javascript.... strange!
A lot of people of this list already know the JS part, but for the curious, here's the correct explanation :
http://stackoverflow.com/questions/9032856/what-is-the-explanation-for-these...
The [ ] + X part isn't that bad, but I have to admit that :
{ } + [ ] -> 0
while
var x = { }; var y = [ ] ; x + y -> "[object Object]"
is far from elegant.
Bruno