Re: RFC: Making T_FUNCTION optional in method declarations

From: Date: Sun, 28 Nov 2010 20:23:18 +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-50671@lists.php.net to get a copy of this message
Ángel González wrote:
Derick Rethans wrote:
On Sat, 27 Nov 2010, Johannes Schlüter wrote:
RFC: http://wiki.php.net/rfc/optional-t-function Patch: http://schlueters.de/~johannes/php/zend_optional_t_function.diff
I'm -1 on this one. Besides this being confusing for people who want to run "newer" code on older PHP versions; this change does nothing but stop you from having to type "function". Something that the parser tells you immediately that you have forgotten this.
Join me to the list of people which don't like it.
And since my name has already been mentioned ;) I see little point in removing what is a very useful 'flag' when trying to understand other peoples code. Yes PHPEclipse will take me to the right definition ( and does all the type hinting that I need! ) but this is still a useful hook when managing code? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php

« previous php.internals (#50671) next »