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

> which showed intent - hence easier to grok the surrounding code

There was some concern that removing "new" would make it less obvious that an object was being constructed. In practice, though, it's been totally fine. The fact that the thing you're invoking is a class (and hence a capitalized name) seems to be sufficient signal that "you're making an object".

Also, several other languages already work this way: Python, Scala, Kotlin, etc.



And Swift




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

Search: