PHP already has the bad habit for many programmers to write totally unreadable code. It's darn near as bad as Perl in that area. No reason to make it worse.
And you really think not allowing multiple namespaces in a file will improve that? I don't think so. These people will continue to write unreadable code, no matter how many restrictions you put into the language itself to prevent that. And as a negative side-effect the others lose more and more flexibility of the language. Apart from that multiple namespaces in a file always result in less readable code. I don't see how it would be that much better with braces.
Giving people rope to hang themselves with isn't really a good idea IMO. That's the difference in taking over somebody else's code from a Perl programmer or a Python programmer. You can have nasty Python code but it takes far more effort than with Perl code. PHP is somewhere in the middle in that it's inconsistent and has several features that make code a mess to read but it isn't as crazy about offering a dozen ways to do everything as Perl is.

e.g. Why do we need multiple forms of the if statement? That's just messy and leads to bad code. Does it really help anybody program better?

Multiple namespaces in a single file, without braces, would end up being a nightmare when taking over other people's code. Something that happens often in the work environment.

--
Michael McGlothlin
Southwest Plumbing Supply

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to