From kde-commits Thu Apr 07 16:19:53 2005 From: Allan Sandfeld Jensen Date: Thu, 07 Apr 2005 16:19:53 +0000 To: kde-commits Subject: Re: kdelibs/khtml Message-Id: <200504071819.54096.kde () carewolf ! com> X-MARC-Message: https://marc.info/?l=kde-commits&m=111289183417953 On Thursday 07 April 2005 17:46, Tobias Anton wrote: > Am Dienstag, 5. April 2005 14:21 schrieb Luboš Luňák: > > +again: > > + > > Yuck! > > > - // don't return until necessary! > > jsrc.decoder_timestamp.restart(); > > state = decompressStarted; > > + // don't return until necessary! > > + goto again; > > Yuck-yuck! > Who taught you this coding style? > > What about a > "do ... while (!necessary);" > or even a > "do { ... continue; } while (false);" > loop? > Wouldn't that obfuscate it rather than make it clearer? Repeat after me: "goto is not a necessarily a bad thing!" `Allan