News for hackers. Stuff that matters.
Re:Why We Chose Typescript by fny on Saturday July 01, 2017 @09:28AM (#14677020)
An instance of mixed-type maps*

Elsewhere one would have to define a struct/class and them create an instance.

This becomes immensely helpful for the incredibly lazy with one off object definitions and wrapper types. If you introduce a class definition alongside an instance, you're now forced to manage two peices of code. The class definition and instance definition. In this case they're coupled which aides maintenance in my experience.

There are no comments on this comment yet.