4 ms·
The expressiveness of the type system far outweighs its complexity, imo. To give a commonly-encountered example, rather than the easily-introspectable options
by jhanschoo 6y ago
The expressiveness of the type system far outweighs its complexity, imo.
To give a commonly-encountered example, rather than the easily-introspectable options object whose schema is specified by a zero-runtime-cost TS interface, in a traditional OOP language like Java you would write an XOptions / XOptionsBuilder class to maintain type safety, which is at once more opaque, with less predictable behavior.