Re: Re: [RFC] skipping optional parameters

From: Date: Fri, 20 Apr 2012 06:03:15 +0000
Subject: Re: Re: [RFC] skipping optional parameters
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-60223@lists.php.net to get a copy of this message
On 04/18/2012 11:04 PM, Stas Malyshev wrote: > Hi! > >> "default" is already a reserved keyword. It's used in switch >> constructs. So it is safe to use :) > > Ah, silly me, indeed it is. Then I guess it doesn't hurt to add it as an > option. Will do. I can't estimate the amount of breakage, but what about using underscore (literal _) without quotation marks? In functional languages it's sometimes the "default match" in pattern matching, that's at least a loose conversion and I hope not many people would do define("_", <whatever>) in their code. The question now is, if create_query("a", _, _, _, true) really looks better... Greetings, Florian

« previous php.internals (#60223) next »