Re: new feature -> with()
| From: | Hartmut Holzgraefe | Date: | Wed, 10 Oct 2007 14:19:05 +0000 |
| Subject: | Re: new feature -> with() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32723@lists.php.net to get a copy of this message | ||
Richard Black wrote:
[...] for me it doesn't add any value - only potential confusion.+0.9 it makes sense as a convenience tool if used correctly but can create a hell of a maintenance nightmare if not Almost as bad as GOTO maintenance wise but without the benefits in edge cases. When reading foreign C++ code a lot you learn to love the explicit nature of PHP naming scopes even though it is extra typing as it is clear at first sight whether you are looking at a variable, member variable, function, object method ... It is also clear that everything is from a local scope unless explicitly declared as global within that local scope ... Lets do not weaken this concept ... -- Hartmut Holzgraefe, Principal Support Engineer . Discover new MySQL Monitoring & Advisory features at: http://www.mysql.com/products/enterprise/whats_new.html Hauptsitz: MySQL GmbH, Dachauer Str.37, 80335 München Geschäftsführer: Kaj Arnö - HRB München 162140