From kde-core-devel Wed Aug 07 09:59:55 2002 From: Lubos Lunak Date: Wed, 07 Aug 2002 09:59:55 +0000 To: kde-core-devel Subject: Re: readDate in KLocale X-MARC-Message: https://marc.info/?l=kde-core-devel&m=102871422932471 Dne st 7. srpen 2002 11:43 Jacek Stolarczyk napsal(a): > On Wed, 7 Aug 2002, David Faure wrote: > [...] > > > No need to switch to a while() (with the risk to forget initialization or > > j++ somewhen). > > > > Simply doing > > for (int j = 1; j < 8 && error; j++) { > > will abort the loop when a match is found. > > (Is this what this is about?) > > Yes, exactly. It's just that the "for" loop with additional condition is a > little obscure. "while()" is better suited for breaking loop when a > condition is no longer met, after all. And now somebody tell me that 'break' makes obscure and messy code. -- Lubos Lunak llunak@suse.cz ; l.lunak@kde.org http://dforce.sh.cvut.cz/~seli