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

This, on the other hand, seems perfectly reasonable to me:

    var c = new Customer();
Type inference works great imho to avoid specifying the object twice using a normal constructor, not a factory function, and in a codebase where actual classes and not interfaces are specified as method paramethers, though I suspect this is an antipattern ;)


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

Search: