|
Posted by Erwin Moller on 11/25/05 11:40
jkmambo@gmail.com wrote:
> When you use one statement in an if-else block you dont need {} for all
> C type languages. {} are only used to group statements
Hi mambo,
(Don't take this personal please.)
I was not saying your code was illigal or not working, I was just expressing
my annoyance with the style.
And I just wanted to tell you that your code looks a lot cleaner by adding
brackets.
I expect at least 99% of the PHP-community will to agree with that.
Shorter code isn't always better to read.
And I have seen my fair share of obscure errors that are difficult to
pinpoint due to sloppy codestyle.
(Sorry to call that code sloppy, but IMHO that style is sloppy.)
Anyway, this discussion doesn't solve your problem.
I'll read up in the other part of this thread, and if have something usefull
to tell, you'll notice. :-)
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|