Re:Ask HN: Does anyone use Nim language in production?
by kskskuejej2 on Monday May 29, 2017 @02:52AM
(#14437792)
And golang knows what type of error can be returned at compile time.
type FatalError error
func foo() FatalError {}
No, they are part of the syntax. The compiler (in Nim and other languages) can track which exceptions are allowed to be raised in a procedure and which aren't at compile time:
https://nim-lang.org/docs/tut2.html#exceptions-annotating-pr...