2 ms·
I conceptualize Typescript as an advanced linter. The teams building the TS spec want Typescript concepts to map closely to the usually much-looser Javascript c
by graypegg 3y ago
I conceptualize Typescript as an advanced linter. The teams building the TS spec want Typescript concepts to map closely to the usually much-looser Javascript counterpart if it exists, so you get a weird syntax that makes promises the underlying "thing" can't hold up. (Especially if you're coming from Java/C# to Typescript.) If you just treat it like a tool to better describe Javascript though, and catch SOME statically analyzable bugs, it works great at what it does.