Re: Re: import/use last call
| From: | Gregory Beaver | Date: | Tue, 23 Oct 2007 14:03:43 +0000 |
| Subject: | Re: Re: import/use last call | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32931@lists.php.net to get a copy of this message | ||
Giedrius D wrote:
> Hi,
>
> sorry if I missed something but is there any reason to not use keyword "use"?
>
> IMHO allowing keywords in class, method, function, etc. names brings
> more confusion then value.
>
The same confusion that is brought about by allowing keywords as
variable names?
<?php
class Test
{
public $class;
}
$a = new Test;
$a->class = 1;
?>
Is this next example any more confusing?
<?php
class Test
{
function class(){}
}
$a = new Test;
$a->class();
?>
I think you're confused by what is proposed :).
Greg