News for hackers. Stuff that matters.
Re:Ask HN: Does anyone use Nim language in production? by nimmer on Sunday May 28, 2017 @08:23AM (#14434113)
> exception is just a type of return value

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...

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 {}
Re:Ask HN: Does anyone use Nim language in production? by dom96 on Monday May 29, 2017 @05:59PM (#14441717)
Nim does too. The exception tracking is performed at compile time.