Re: An implementation of a short syntax for closures
| From: | Stas Malyshev | Date: | Thu, 04 Aug 2011 07:52:29 +0000 |
| Subject: | Re: An implementation of a short syntax for closures | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54337@lists.php.net to get a copy of this message | ||
Hi!
On 8/4/11 12:31 AM, dukeofgaming wrote:
I've always thought that just supressing the "function" keyword could work as a shorthand, i.e. having ([param1 [, param2 [, ...]]]){...}. Somewhat similar to Ruby's lambda shorthand: http://slideshow.rubyforge.org/ruby19.html#40My opinion is that when almost any mix of alphanumeric and non-alphanumeric characters becomes a valid syntax in the language, it's taking it a bit too far :) -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227