5 ms·
> > It's exception safe. There are no runtime exceptions. All exceptions have defined semantics, and they are always handled. > This seems contradictory. Are t
by 6502nerdface 11y ago
> > It's exception safe. There are no runtime exceptions. All exceptions have defined semantics, and they are always handled.
> This seems contradictory. Are there exceptions or not? EDIT. Apparently there are (http://tutorial.ponylang.org/expressions/exceptions/ http://tutorial.ponylang.org/expressions/exceptions/). But then I don't understand what the above means.
I think the author is using a terminological Java-ism. In Java, a "runtime exception" (RuntimeException and subclasses) is an exception that doesn't have to be handled, and therefore may be thrown unhandled at runtime. Pony has exceptions, but no unhandled exceptions, i.e. no "runtime exceptions" in Java speak.
- ggchappell 11y agoYes, that's probably what is meant. So the point is that a program will never crash due to an exception.