News for hackers. Stuff that matters.
Re:TypeScripts Type System Is Turing Complete by computerex on Tuesday August 01, 2017 @10:44PM (#14907530)
C++ templates are also Turing complete.
Re:TypeScripts Type System Is Turing Complete by ygra on Wednesday August 02, 2017 @02:22AM (#14908353)
I think most people knowing C++ know that. But since then we've tried to avoid the same complexity in most newer languages. Thus, the fact that TypeScript, Java, and C# all have Turing-completeness more or less by accident in their type systems may be surprising. (Granted, template metaprogramming was also more an accidental discovery than a design goal of C++, but it's been around for a while longer.)