| ▲ | inkysigma 4 hours ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||
One example along this path as an example is that every function must either terminate or have a side effect. I don't think one has bitten me yet but I could completely see how you accidentally write some kind of infinite loop or recursion and the function gets deleted. Also, bonus points for tail recursion so this bug might only show up with a higher optimization level if during debug nothing hit the infinite loop. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | account42 2 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Infinite loop without side effects == program stuck and not responding on user input and not outputting anything. That's not something a useful program will ever want to do. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | 1718627440 an hour ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
That's only true in C++ though, not in C. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||