Re: [RFC] skipping optional parameters

From: Date: Tue, 17 Apr 2012 23:17:00 +0000
Subject: Re: [RFC] skipping optional parameters
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-60129@lists.php.net to get a copy of this message
Stas Malyshev wrote:
Basically, it allows you to do this: create_query("deleted=0", "name",,, /*report_errors*/ true);
I'm a huge fan of this idea, for all the reasons listed on the RFC and one additional one: it brings normal functions in line with the syntax for list() - We can skip parameters in list() using the same syntax, so to my eye, this brings consistency. (Of course, list() is a construct, not a function, but considering how similar the syntax is, I think this makes sense.)

« previous php.internals (#60129) next »