Define a utility function when you need it? :-)
mixed value_with_default(mixed value, mixed default) { return exceptionset(value)->no_value ? default : value; }
/ Leif Stensson, Lysator
Previous text:
2003-01-28 12:11: Subject: Re: zero_type() & UNDEFINED and _typeof()
I'd like a construktion where the actual m->foo lookup is done only once (and preferably, also occurs only once in the source code).
/ Niels Möller ()