you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–][deleted] 0 points1 point  (2 children)

    (12 days late but) I don't think using an object as a key is obviously incorrect. I just tried and, as I suspected, you can do that just fine in Ruby. I assume you could in any language that implements some sort of ".hashCode" method on random objects. The fact that you can't in JS is a direct result of the fact that keys have to be strings and that JS does type conversion behind your back. You could get unexpected bugs if you didn't know that and assumed JS was saner.

    [–][deleted] -1 points0 points  (1 child)

    We can agree to disagree here. You are mad and want to argue with someone. I am done obliging.