Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Huh, you're right. I thought I typed that at the REPL and it gave back 5, but obviously I typed the wrong thing.

Almost all cases that I've used this functionality have been to return a different object. I suppose when you say "new" you're supposed to expect an object, which is why it works that way.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: