Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc

From: Date: Tue, 19 Feb 2013 17:53:40 +0000
Subject: Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-65979@lists.php.net to get a copy of this message
Hi, On Tue, 2013-02-19 at 21:44 +0000, Nikita Nefedov wrote: > Hi! > > As someone mentioned in the thread about short syntax for closures, we > could also drop requirement for function keyword when > defining/declaring > methods in classes, interfaces or traits. I proposed this in November '10: http://news.php.net/php.internals/50628 I agreed to the conclusion that the "function" keyword provided a nice way to grep for functions when handling foreign code and leaving it out only provides little improvement in less typing. Please provide new arguments for a new discussion. (That thread was rather long) And as a general note I'd like to remind you all about Rasmus' recent mail: http://news.php.net/php.internals/65894 - In my words: Why not fix bugs instead of creating new ones? johannes

« previous php.internals (#65979) next »