Preferred coding style for error handling?

Dimitrie O. Paun dimi at
Mon Aug 25 16:17:17 CDT 2003

On 25 Aug 2003, Mike Hearn wrote:

> but obviously pretty much every coding guideline ever written says
> "don't use goto!". 

IMO they are too religious. Yes, avoid goto, but not at the (big) expense
of readability. There are not that many cases where you need goto, but this
is one of them. I find this style a lot more readable than 10000 nested
ifs or what have you. Use good judgement and taste, and if you find that it 
results in cleaner code, go for it.


More information about the wine-devel mailing list