News for hackers. Stuff that matters.
Re:TypeScripts Type System Is Turing Complete by thegeomaster on Tuesday August 01, 2017 @10:56PM (#14907569)
I'd like to emphasize what you said---that's not an inherently bad thing, but as most powerful features of languages, it can be abused. A lot of languages have Turing-complete type systems, and I have yet to see a serious abuse of this in production code. For example, C++ has some really cool libraries that do a lot of stuff at the type-level, and this has been acknowledged and even made more explicit and usable, with the introduction of constexpr, which basically lets you run plain old imperative code at compile-time.
Re:TypeScripts Type System Is Turing Complete by mmalone on Tuesday August 01, 2017 @11:10PM (#14907641)
Yea, turns out programmers are pretty good at writing code that halts in Turing complete languages.