June 05, 2003
PHP offers choices in syntax for control structures. You can do this:
if (expr) {
statement;
}
or this:
if (expr):
statement;
endif;
I am none too fond of the latter. Especially when the programmer whose code I have to edit doesn't consistently indent a damn thing. At least with curly braces I can use a decent text editor to indicate matching braces. Compound this lack of proper indentation with code blocks that are way too big to keep track of so it's hard to tell to which if
an endif
belongs and you've got yourself a mess.
Or rather, I do.
Grrr…