[sr-dev] syntax error in while condition

Juha Heinanen jh at tutpro.com
Mon Jun 1 18:06:15 CEST 2009


Andrei Pelinescu-Onciul writes:

 > You don't becaue that are languages were an infinite while() makes
 > sense. In a sip-router script the while() by itself is strange, and
 > an infinite while is an abomination :-)

if someone writes

while(1)

i'm pretty sure, he/she knows what he/she is doing.

i would replace 1 with a variable, but result would slower and three
statements longer.

-- juha



More information about the sr-dev mailing list