Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
antidoh
on July 4, 2012
|
parent
|
context
|
favorite
| on:
Treating JavaScript like a 30 year old language
I liked the bit about using new. As he says, some people go with capitalizing their constructors, but capitalization is not enforced by the compiler. 'new' is explicit, it can't be anything but a new object.
phleet
on July 4, 2012
[–]
Well.. that's mostly true. You can get some pretty interesting results if you return something in a function invoked using new:
http://wtfjs.com/2010/11/10/false-advertising
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: