HAL APM anti-goto-ification.
Richard Hughes
hughsient at gmail.com
Tue Nov 15 13:53:49 PST 2005
On Tue, 2005-11-15 at 16:51 -0500, David Zeuthen wrote:
> On Tue, 2005-11-15 at 21:49 +0000, Richard Hughes wrote:
> > Now 0.5.5 has been released, I've a few patches that have been sitting
> > in my local tree for a while.
> >
> > This small patch just replaces the goto jumps with returns in apm.c,
> > saving many ret variables (and saving my eyes from bleeding every time I
> > look at the file...)
> >
> > Good to commit?
>
> No. You appear to be suffering from the gotos-are-evil syndrom.
That's been bred into me at university...
> Keep in
> mind that in C most people consider goto elegant in terms of error
> handling plus it makes it possible to actually follow the "you enter a
> function one place - you exit a function one place" paradigm.
Sure, you're the boss. :-)
Richard.
More information about the hal
mailing list