Re:From zero to 10M lines of Kotlin
by bottlepalm on Tuesday October 25, 2022 @10:35PM
(#33339093)
So your reason to avoid TypeScript is some very rarely encountered corner case? Talk about perfect being the enemy of the good.
No language is perfect. Your comment is absurd, and the citations are pedantic.
Re:From zero to 10M lines of Kotlin
by seanmcdirmid on Tuesday October 25, 2022 @10:39PM
(#33339119)
TypeScript works well because they don’t worry about soundness and completeness. The type system isn’t trying to be perfect, just useful. This scares PL theorists, but I think it has been a very profitable corner of the design space to explore.
[1]: https://github.com/microsoft/TypeScript/issues/14833
[2]: https://io.livecode.ch/learn/namin/unsound
[3]: https://arxiv.org/abs/1605.05274
[4]: https://kotlinlang.org/spec/type-system.html#subtyping
[5]: https://arxiv.org/abs/1908.05294