Page 2 of 2

Posted: Tue Jun 24, 2003 6:49 am
by lcidw
twigletmac wrote:if is a control structure - not a function
Isn't a control structure actually a function too?

Posted: Tue Jun 24, 2003 7:07 am
by releasedj
No. A control structure is considered a statement that groups statements, and is part of the core language.

http://www.php.net/control-structures

Posted: Tue Jun 24, 2003 3:42 pm
by phice
phpBB has an outstanding guideline of how they want all of their programmers to program by. I would make note of that.

Posted: Tue Jun 24, 2003 9:28 pm
by redJag
I don't know what style it is, but I code like so:

Code: Select all

void function () {

     if (condition){
          //code
      }
      else{
          //other code
      }
//no spaces for debug lines
 return; //one space for return lines
}
Is this a style?

Posted: Tue Jun 24, 2003 9:37 pm
by nielsene
Anything is a style.

Your's looks like a modified K&R. But it seems to mix the "braces on a line by themselves" and "pack braces tightly" common patterns, so its likely to look "bad" to both camps...