Re: if syntax

From: Date: Thu, 11 Jul 2002 09:53:51 +0000
Subject: Re: if syntax
Groups: php.general 
Request: Send a blank email to php-general+get-107084@lists.php.net to get a copy of this message
>Is that also correct?? No brackets needed? Two Comments: The "alternate syntax" with the colons is passe -- I think you'd have to dig pretty deep to find a script old enough that uses it for anything other than demonstration purposes. (Rasmus?) You don't *HAVE* to have {} for one-line clauses, but sooner or later, you'll end up adding a line, and then the whole thing will puke on you because you don't have {}... Thus, it is morally wrong to not have {} in all your code. This is a religious issue, and others will disagree. They're just wrong :-) -- Like Music? http://l-i-e.com/artists.htm Off-Topic: What is the moral equivalent of 'cat' in Windows?

« previous php.general (#107084) next »