3 ms·
What if that was an actual semantic transformation in the language? Naming something XorDie would execute the body of X in a context within which all errors are
by mahmud 16y ago
What if that was an actual semantic transformation in the language? Naming something XorDie would execute the body of X in a context within which all errors are caught, and if any is found, the call returns NIL or similar?
Easily doable with handler-case, unwind-protect and reader macros, but ugly as sin.
- rudiger 16y agoWe do the same thing with getX and setX; it would be interesting to see more "meaningful" function names in a language.