2 ms·
I tend to call Typescript's type system "pragmatic typing": - type inference - structural types - union and intersection types - important: easy escape hatc
by dmitriid 9y ago
I tend to call Typescript's type system "pragmatic typing":
- type inference
- structural types
- union and intersection types
- important: easy escape hatches such as trivial cast to `any` or the ability to write your own type definitions for almost any random piece of code including third party libs
Type purists may scoff at Typescript's type system, but it's there, it mostly works, it's very easy to get started with, it's reasonably fast. I would personally wish for exhaustive type checking, and I wouldn't be surprised if I get my wish sometime in the future.
Another rather pragmatically typed language is OCaml/ReasonML