Hacker News new | ask | show | jobs
by _zywo 1512 days ago
Infinite loops are considered undefined behaviour in C++.
1 comments

Infinite loops are undefined (actually, undecidable) behaviour in any Turing machine.

https://en.wikipedia.org/wiki/Halting_problem

That's not what undefined behavior means.