Skip to content
Prev 49602 / 63421 Next

RFC: getifexists() {was [Bug 16065] "exists" ...}

On 08/01/2015 9:03 AM, John Nolan wrote:
That would be a bad idea, as it would change behaviour of existing uses 
of get().  What I suggested would not
give a default.  If the arg was missing, we'd get the old behaviour, if 
the arg was present, we'd use it.

I'm not sure this is preferable to the separate function 
implementation.  This makes the documentation and implementation of 
get() more complicated, and it would probably be slower for everyone.

Duncan Murdoch