Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc
| From: | Levi Morrison | Date: | Tue, 19 Feb 2013 23:45:57 +0000 |
| Subject: | Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66006@lists.php.net to get a copy of this message | ||
On Tue, Feb 19, 2013 at 4:01 PM, Zeev Suraski <zeev@zend.com> wrote:
> Are we really trying to look under ground now for ways to change the
> language syntax?
>
> Unless there's a strong case to adding/removing/changing syntax, that
> goes well beyond 'because we can' or 'it shortens the code' it
> shouldn't even be brought up for discussion.
I am something of a language guru and to me syntax is *extremely*
important. Am I of the opinion that removing the function keyword from
the class definition will help? Yes, I am. Do I think it's some
incredible advancement? No, I don't.
The key question for me is: does removing it hurt PHP in any way? And
for me, the answer is a clear and resounding no. I do not grep code
for method definitions: I know exactly where they are and so will my
IDE if I happen to not be using vim. And for those who like to grep
for method definitions they can keep the keyword present.