Re:.NET 5.0
by WorldMaker on Wednesday November 11, 2020 @01:20PM
(#25061088)
Some things like conditional types and string template literal types start to get way out into abstract type land that is certainly more advanced than C#'s type system. Typescript is inching closer and closer to the Haskell-ish land of turing complete type systems where the type system itself is nearly it's own meta-programming language with each version.
(A recent example was the "SQL engine" written using string template literal types to type safe "query" an in-memory database. That's quite more advanced than anything C# is capable of, albeit a strange hack and unlikely to be specifically something useful in production anytime soon, though still built out of things that make Typescript useful to some JS projects.)
Re:.NET 5.0
by seanmcdirmid on Wednesday November 11, 2020 @11:15PM
(#25066371)
Typescript lacks the goal of soundness, which makes it much easier to introduce powerful features than in Haskell.
I’ve gotten used to typescript, but I still enjoy using C#. Some things I really miss in C# (limited operator overloading) that will never come to typescript (not because of the type system, but because of javascript source compatibility).