Hmm, I just came to realize a clear advantage with UNDEFINED wrt an existence operator: It makes it possible to combine the existence operation and the lookup.
It's a pity that it's equal to zero though. Compatibility aspects aside, it would be better if 0 != UNDEFINED (but both would still be false).
/ Martin Stjernholm, Roxen IS
Previous text:
2003-01-23 00:34: Subject: Re: zero_type() & UNDEFINED and _typeof()
I said that UNDEFINED is useful considering the current situation when this kludge exists. The kludge itself is unfortunate, though, and UNDEFINED (and the other zero types) could be removed if a new existence operator is added.
/ Martin Stjernholm, Roxen IS