Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc
| From: | Sanford Whiteman | Date: | Wed, 20 Feb 2013 00:02:19 +0000 |
| Subject: | Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66009@lists.php.net to get a copy of this message | ||
> 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.
I'm missing the help. It saves 9 characters and creates a disjunction
between global function syntax and function-as-method syntax? Sorry, I
can't see this as anything better than neutral.
> And for those who like to grep for method definitions they can keep
> the keyword present.
... in their own code, not in all the code they are forced to maintain
(whether that be newbie sloppy code or super-cool library code).
-- S.