3 ms·
Why not just send a pull request to TypeScript if some of the types are incorrect?
by olalonde 4y ago
Why not just send a pull request to TypeScript if some of the types are incorrect?
- gl-prod 4y agoSo many libraries depends on TS and a PR like that would break a lot of them. I would say they need to put it under a flag.
- ocimbote 4y agoSo... a PR with a flag? :)
- makkesk8 4y agoThat's what semantic versioning is for, breaking changes are inherently allowed in major version bumps.
- rgoulter 4y agoIn theory, yes. In practice, here are a couple of examples: A thread in relation to "replace `fgrep` with `grep -F`": https://news.ycombinator.com/item?id=33189503 https://news.ycombinator.com/item?id=33189503 How people feel about Python's handling of Python 2 vs Python 3: https://news.ycombinator.com/item?id=34227760 https://news.ycombinator.com/item?id=34227760
- undefinedzero 4y agoSemantic versioning isn’t really usable for typed languages as the majority of fixes would be considered breaking changes.
- hombre_fatal 4y agoBeing able to declare major changes in a version number says nothing about whether it's a good idea to make them.
- purge 4y agothey made the change from any to unknown in the catch handler so its not without precedent
- lelandfe 4y agoThe Boolean one at least is pretty longstanding: https://github.com/microsoft/TypeScript/issues/16655 https://github.com/microsoft/TypeScript/issues/16655 I imagine there are a lot of edge cases to wade through before mainlining.