develooper Front page | perl.perl5.porters | Postings from May 2006

Re: [PATCH] removing one-line for and while loops

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 2, 2006 08:50
Subject:
Re: [PATCH] removing one-line for and while loops
Message ID:
20060502175021.2b3f9ba1@grubert.mandriva.com
Andy Lester wrote:
> -	for (t = s; !isSPACE(*t); t++) ;
> +	for (t = s; !isSPACE(*t); t++)
> +	    NOOP;

I think I tend to find this kind of changes overkill, almost
to ugly. In my code, I usually put a lone ; on the next line.
Isn't this sufficient ?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About