4 ms·
Just merge with Typescript already and reduce the complexity of the ecosystem. If someone does not want types they can just ‘any’ everything.
by polskibus 4y ago
Just merge with Typescript already and reduce the complexity of the ecosystem. If someone does not want types they can just ‘any’ everything.
- dymk 4y agoAdding (even a simplified version of) the Typescript typesystem to the Javascript spec is probably a bad idea. It's all the weird little complexities of Typescript that make it flexible enough to add types to most JS code. Javascript as an untyped build target is fine. I'm opposed to adding (ignored) type hints to Javascript because they'd just end up rebuilding Typescript, but done poorly.
- frou_dh 4y agoTypeScript doesn't have a language specification so there's nothing to merge. If you tell browser vendor X that they need to start supporting TypeScript, what does that mean?
- neysofu 4y agoI wouldn't hold the lack of a natural language specification against Typescript. Canonical open-source implementations work just as well in practice and tend to become de-facto standards: Microsoft's compiler is effectively a human- and computer-readable specification.
- Existenceblinks 4y agoI can't come up with reason why you got downvote. This is a fundamental and basic thing on designing type. I'm afraid to comment "merge what?" (genuine question)
- cyral 4y agoOr enable implicit any which makes it just like JS with optional types.