Re: what does two semicolns ';;' do
- From: Tim Streater <tim.streater@xxxxxxxxxxxx>
- Date: Mon, 30 Jun 2008 12:57:18 +0100
In article <ivgh64ll18rvnv95q6noc13cadab4r17uh@xxxxxxx>,
Michael Fesser <netizen@xxxxxx> wrote:
.oO(AnrDaemon)
Greetings, Ivan Sanchez Ortega.
Which means, that's an infinite loop (until it's broken by calling the
break() construct inside the loop)
Ridiculous usage of the language construct...
Why not use
while(true){ ... }
then?
Pest or cholera. You also have to use a break to leave the while loop.
IMHO infinite loops are always ugly and bad coding style, regardless of
how you code them.
Not necessarily. I would always use while (true), as then you make
explicit what you are doing. Secondly, sure you have to break out of the
loop. But suppose there's a number of different reasons to do so? You're
not necessarily going to be able to choose one as the "main driver" of
the loop, which ought then to migrate into the loop construct?
.
- Follow-Ups:
- Re: what does two semicolns ';;' do
- From: Michael Fesser
- Re: what does two semicolns ';;' do
- References:
- what does two semicolns ';;' do
- From: larry
- Re: what does two semicolns ';;' do
- From: AnrDaemon
- Re: what does two semicolns ';;' do
- From: Michael Fesser
- what does two semicolns ';;' do
- Prev by Date: Re: what does two semicolns ';;' do
- Next by Date: Re: what does two semicolns ';;' do
- Previous by thread: Re: what does two semicolns ';;' do
- Next by thread: Re: what does two semicolns ';;' do
- Index(es):
Relevant Pages
|