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

I’m not sure why you’re comparing __new__ to constructors in other languages.

Ruby has the same thing but it’s called ‘new’.

Implementing the type of customization (idiomatically) that __new__ provides in Kotlin and JS isn’t any cleaner.



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

Search: