The has been up before, but since it's a difficult topic to search on, I can't find it ![smile](https://punbb.informer.com/forums/img/smilies/smile.png)
play75010 wrote:1) enhance code readability
Not really, just more clutter.
play75010 wrote:2) mod insertion (for example, if you need to add a line for a mod after a "if" statement and want to keep the original as a comment, then it is much better to have a '{' before and '}' after, isn't it ?)
This hasn't been a problem before with any mod. Everybody that are making mods are experienced PHP coders so they should know how it works.
play75010 wrote:I have been working as a programmer for more than 10 years and I can tell you that this is absolutely essential.
Heh.. um.. Everybody says that. And I can't agree with you, it's not essential at all.
play75010 wrote:Also, please note that in most programming guides or code rules, you will find that the '{' is on the same line as the "if" or "else" statement. This is the de facto standard.
AFAIK (it's what I've heard, can be wrong) having the { on the same line as the if statement is more common in the java world, and having it on the second line is often seen in C/C++. PHP is neither and many people that comes from java tends to use place it on the same line. Personally, I think having it on a second line increses readability a lot. It also kind of eliminates the need to have { } on one-liners, since it makes it so obvious. Lastly, having the { on the same line as the statement is nowhere near a de facto standard, everyone does it differently, so just adapt to the project you're working on.