On Fri, Jan 19, 2007 at 01:06:20PM -0600, Aaron Griffin wrote:
On 1/19/07, James Rosten <seinfeld90@gmail.com> wrote:
Just how lenient are you on the spaces in conditionals and loops thing :P ? Like: for ( int i = 0; i; ++i ) {
I always write for (i = 0; i < 10; i++) { ... } which looks like normal sentence punctuation to me (space after comma, ...)
Also, I'm kind of curious to know whats behind the return(0); instead of return 0; decision. I'll do it like a function, but I'm just curious.
I'm not entirely sure of that myself. I'm one of those people who doesn't force a coding style into something, and that's just the way 95% of the pacman code does it.... you'd have to ask judd (if he's even alive, heh).
I'm interested in that too. I always followed the rule, not to mix up C's control structures with functions and function calls. And also to keep the use of needless parentheses at the bare minimum because they just decrease readability. Hannes