4 ms·
One major difference is the null checking. From what it looks like, they've added an additional type, "maybe", that represents a possibly-null object. TypeScri
by judah 12y ago
One major difference is the null checking. From what it looks like, they've added an additional type, "maybe", that represents a possibly-null object.
TypeScript doesn't have that concept, although it's been suggested by the community more than once.
- inglor 12y agoHere is some interesting discussion on that aspect of the typesystem: https://github.com/Microsoft/TypeScript/issues/14 https://github.com/Microsoft/TypeScript/issues/14 It also discusses Flow from 2 months ago (from a now removed video)