Re: Inconsistencies in 5.3
| From: | Stanislav Malyshev | Date: | Mon, 04 Aug 2008 04:53:15 +0000 |
| Subject: | Re: Inconsistencies in 5.3 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39593@lists.php.net to get a copy of this message | ||
Hi!
1) new keyword 'use'. Semantically it is the same as 'static' or 'global' so it should be used in the same location.Of course it's not. It does entirely different thing from static or global, it doesn't even deal with variables.
2) namespaces, either use 'package' and only one per file, or use 'namespace' with curly braces. Read this as be consistent with other languages and even if one or two people do not like it the two mainI don't see any requirement for PHP to mimic other languages up to minute detail of keyword and separator usage.
And there is no technical reason and surely no other reason whatsoever to not have curly braces. If there is then we either fix that or went with the wrong approach.There are reason, and they were amply explained in past 10 revolutions of this topic. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com