News for hackers. Stuff that matters.
Re:Grain: A strongly-typed functional programming language f... by colanderman on Tuesday July 31, 2018 @12:35PM (#17654608)
Wow, I used Erlang extensively a few years ago and don't remember exceptions at all. (Exit reasons and process monitors, yes; but I don't think I ever wrote a "catch" expression, or encountered a library that expected me to do so.)
Re:Grain: A strongly-typed functional programming language f... by masklinn on Tuesday July 31, 2018 @01:45PM (#17655281)
Yeah it's very rare to catch exception within processes, or to raise them explicitly. It's common to write something like

    {ok, Result} = foo()
though, and that raises badmatch if it fails, and you handle it in a supervisor.
Re:Grain: A strongly-typed functional programming language f... by rs86 on Tuesday July 31, 2018 @03:30PM (#17656284)
You can use throw/catch to great effect when you need non local returns