News for hackers. Stuff that matters.
Re:Wat by Cushman on Thursday January 26, 2012 @07:52PM (#3516731)
I understand why it happens. I'm saying that what you're pointing out is not in the nature of JavaScript, it's in the REPL. It's just wrong; there is no other situation where that code would evaluate that way. node is behaving "properly", showing you what value you can expect if you, say, assign that expression to a variable.

I guess it's an amusing bit of sleight-of-hand, but using it to mock JavaScript seems, I don't know, tasteless. Doesn't it have enough problems without inventing more?

Re:Wat by garybernhardt on Thursday January 26, 2012 @07:58PM (#3516754)
It's a joke. Relax.
Re:Wat by Cushman on Thursday January 26, 2012 @08:22PM (#3516805)
Yes, I saw the joke.

To clarify, I thought the first part of the talk was funny. Here's a weird bit of Ruby. Hah! Here's a weird bit of JavaScript. Hah! Here's some JavaScript to make you think it's weird in a way it actually isn't! Uh, okay? Just don't see what's funny about that, I guess.