News for hackers. Stuff that matters.
Re:Grain: A strongly-typed functional programming language f... by dragonwriter on Tuesday July 31, 2018 @12:47PM (#17654715)
> Normal errors are indeed typically reflected in the return value, but if the error pattern doesn't match the code's expectations then a runtime exception is thrown

With a sufficiently complete static (even inferred) type system, you can catch any possibility of such failures AOT and not run into any error patterns that don't match code expectations at runtime, so while the description isn't literally true of Erlang, Erlang does show a way that it could be true of a language with AOT enforcement of adequate type system.

There are no comments on this comment yet.