smarr/SOMns

Optimize Exception signaling

daumayr opened this issue · 2 comments

Build a nice exception thrower in Java to avoid helpers in SOMns code.
Introduction of new Exception classes (and throwing them from the Java side) should be clean and easy to do.

smarr commented

TODO:

  • make sure all signalNotAValueWith: errors and similar use only the class of the broken Value, but don't let the invalid Value object escape. We can't allow references to invalid objects to exist
  • make sure we use constant SSymbol objects everywhere, the string conversion is just overhead

Attempted to fix in PR:
#251