4 ms·
Boring! That is the problem, nobody want to do such boring things.
by progx 4y ago
Boring! That is the problem, nobody want to do such boring things.
- yencabulator 4y agoNobody except Microsoft is able to write a spec for Typescript. Microsoft has already declared that the implementation is it, any spec a random person writes will just be ignored.
- ansraliant 4y ago
- epolanski 4y agoIt's not about boredom, it's simply an implementation derived language as are Haskell or PHP or Python. Having a spec is really valuable only if you intend to target different environments, that's a non-goal for TS it simply transpiles, rather than compiles, into another programming language. It's also bound to follow each new JS feature and change.
- randomdata 4y agoThe value of a spec is having something that resolves how to deal with quirks discovered in an implementation. Absent of a spec, any implementation quirks become a part of the language. Which is okay as long as you only ever have one implementation, but when you want to, say, reimplement Typescript in Rust then you have to duplicate all of the quirks that came before, even in cases where nobody has yet realized that the quirk exists. Failure to do so means that your implementation won't be compatible with the canonical implementation. At the other end of the spectrum, the Go project maintains two independent compiler implementations to ensure that the spec is implementable and to see that a single implementation, with all of its quirks, doesn't end up defining the language. That puts a lot of confidence in the spec to guide additional implementations, but, of course, is a lot of added work. Tradeoffs, as always.