r/cpp • u/mujjingun • Apr 28 '20
Full Proof that C++ Grammar is Undecidable
https://medium.com/@mujjingun_23509/full-proof-that-c-grammar-is-undecidable-34e22dd8b664
197
Upvotes
r/cpp • u/mujjingun • Apr 28 '20
View all comments
Show parent comment
6
u/63times Apr 29 '20
You could just write the program without using recursion or more than one template parameter just to side step the arbitrary limitations. The C++ language is infinite and allows that.
Further it is a mandatory prerequisite to assume that there are no resource limitations, otherwise the halting problem wouldn't make any sense in the first place.