logoalt Hacker News

btown • today at 9:06 PM • 0 replies • view on HN

To that point, there was a conscious choice that the return type of most method invocations (except in specific "read a value" modes) should be a standardized container type.

That was, and still is, rare! And in a time without type checking and bundling, it was vital. Match your parentheses and quotes, and your jquery code might not find what you want, but it would (likely) not throw exceptions.

For those unfamiliar, I recommend looking at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast... and searching for the 201 instances of

    : this
in that file. A remarkably fluent API. We could all be so elegant.