Re: RFC: Making T_FUNCTION optional in method declarations
| From: | Johannes Schlüter | Date: | Sun, 28 Nov 2010 14:29:39 +0000 |
| Subject: | Re: RFC: Making T_FUNCTION optional in method declarations | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50654@lists.php.net to get a copy of this message | ||
On Sun, 2010-11-28 at 09:02 -0500, Daniel Convissor wrote:
> Hi Again:
>
> On Sat, Nov 27, 2010 at 08:43:40PM -0500, Daniel Convissor wrote:
> >
> > Not that my vote really counts, but -1. Doing so would eliminate the
> > helpful ability to grep source code for 'function bar'.
I can see this point.
> It also will trip up the multitude of PHP IDE's and editors. Plus it
> reduces code portability. All for saving us making a typo and having to
> write "function"?
PHP IDE's don't understand traits per se, they don't understand other
changes per se. Code using new features won't work on older versions,
but there's a way to be compatible. Depending on your requirements and
likes.
johannes