Hacker News new | ask | show | jobs
by goto11 1242 days ago
> All JS programs are also TS programs, but not vice versa. There's more JS programs in the world than TS programs.

I think you are confusing terminology, because those two statements are contradictory.

1 comments

You're absolutely right, last statement should be inverted. I think meant to say something else, but at this point I don't remember what it was.
In any case, the TS spec is a superset of the JS spec, since it incorporates the JS spec. If you don't consider the JS spec as part of the TS spec then they are disjoint sets. But the TS spec cannot be a subset of the JS spec since that would mean it removed some parts of the JS spec, which is not the case.