Error handling without exceptions (was: Throwable)
eller.helmut at gmail.com
Wed Aug 19 13:27:10 PDT 2009
I've been wondering if the java.dyn stuff will enable error handling
which is not based on exceptions. For instance if a MethodHandle is
called with the wrong number of arguments the current design seems to
assume that throwing an exception is a sensible action to take.
Throwing an exception is a sensible thing to do in many languages but
some languages, Common Lisp comes to mind, handle errors by calling the
current error handler.
Is it possible to efficiently check the argument count and in case of a
mismatch to call an error handler without unwinding the stack?
More information about the mlvm-dev