News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP 10.0 Blog:
syntax I miss in PHP
August 24, 2009 @ 09:40:34

In this new post to the PHP 10.0 blog Stas mentions some of the other syntax options he's like to see in PHP including:

  • a()() - When a() returns a callable object (such as a closure) the second set of brackets would call it.
  • foo(1,2,,4) - Syntax to skip a parameter in a call, which then will be substituted with the default as defined by the function.
  • $a = ["a", "b" => "c"]; - I'd really like to have short array syntax. Yes, I know it was rejected so many times already, but I still like it.

Be sure to catch some of the good amount of comments with options from others about Stas' suggestions.

0 comments voice your opinion now!
alternate additional syntax


blog comments powered by Disqus

Similar Posts

Freek Lijten's Blog: Currently on PHP's internals...

Community News: GeSHi Syntax Highlighter

Hyperpolyglot.org: Syntax for Common Tasks - Side-by-side (Ruby, Perl, Python & PHP)

Ryan Malesevich's Blog: WP Plugins: iG:Syntax Hiliter

Bjarte Karlsen's Blog: My vim setup for editing php files


Community Events





Don't see your event here?
Let us know!


update community framework security voicesoftheelephpant package introduction series language symfony laravel opinion library interview tool release version podcast install composer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework