3 ms·
It encourages spaghetti code.
by saagarjha 7y ago
It encourages spaghetti code.
- Someone1234 7y agoNot using it can also create spaghetti code. For example the "alternatives" often suggesting for exiting a multi-tiered loop (which often add additional boilerplate, additional variables, etc that all need to be maintained/bug free).
- FartyMcFarter 7y agoIndeed. Despite not having actual goto, Java went out of their way to have labeled loops and the "break label_name" syntax in order to avoid this awkwardness.
- jjuhl 7y ago[RAII](https://en.cppreference.com/w/cpp/language/raii https://en.cppreference.com/w/cpp/language/raii) to the rescue..