|
|
|
|
|
by jxub
3032 days ago
|
|
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 ;) |
|