Hello, love the show, long time listener, first time caller.
One of the company's c++ coding guidelines is that goto's are forbidden. For some developers who use goto statements as error handling this could present a problem. For others, ... for ( ;; ) { // Some code for ( ;; ) { bool someError = func(); if (someError) { break; } // ... if (anotherError) { break; } // ... break; } // ... for ( ;; ) { // A few more hundred lines of code with more for( ;; ) loops. break; } // ... break; }
After stumbling upon this beauty I searched and found over 200 infinite loops used as an error handling technique. Not one of these loops ever actually looped.