Re: using $this-> implicitly inside same class
| From: | Marcus Boerger | Date: | Fri, 24 Feb 2006 14:23:07 +0000 |
| Subject: | Re: using $this-> implicitly inside same class | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21998@lists.php.net to get a copy of this message | ||
Hello php,
Friday, February 24, 2006, 3:05:11 PM, you wrote:
> Hi all.
> I'm using php 5.1.2 compiled from source, with Apache 2.2.0
> and MySQL 5.0.18 on SuSE Linux 9.2 pro.
> I really do not see the need to keep telling php I'm
> refering to the properties and method of the class I'm
> already in, when php 5 should be able to deduce this from
> the context of the class I'm coding in.
While we could do this we decided against this years ago for a good reason.
It is faster the way we do it and the code is clearer and much easier
toread. Also introducing this now would be a major BC break.
> This would save ALOT of repetitive typing, and make the code
> alot more concise.
WOW, do your fingers hurt when typing "$this->" - wow 7 strokes.
> this.use_implicit could default to FALSE, so it would not
> interfere with current code compatibility.
No chance for an ini option because that would make writing protable
code impossible.
[...]
Best regards,
Marcus