News for hackers. Stuff that matters.
Re:An introduction to type programming in TypeScript by jcelerier on Wednesday February 02, 2022 @08:59AM (#30177560)
Thanks but I'll take the ability to write arbitrarily complex type-checks over anything else. As a C++ dev who goes out of his way to express things of the type system this has only ever been a positive for me, the loss in compile-time is more than offset by the ability to eliminate whole classes of bugs in one go.
Re:An introduction to type programming in TypeScript by bmc7505 on Monday February 07, 2022 @08:46PM (#30253999)
If you want arbitrarily complex type-checking, why not just check the property you want at runtime instead using an esoteric typelevel programming language? The whole point of having types in the first place is provable decidability, not universal computation -- that's what the value-level is designed to do.