Hacker News new | past | comments | ask | show | jobs | submit login

You can actually leave out new for Points, and Shape.Prism just returns a new Shape. Prism itself is not actually an object (or constructor for an object), it's just a function.

It could use a little consistency :)




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

Search: