Hacker News new | ask | show | jobs
by mratsim 2294 days ago
I totally agree for things like streams or IO like file handling or authentication. It may be fatal at the IO layer but in a GUI you want a nice error displayed to the user and not a crash.

However in some domains you don't want to pollute your return value with a Result or Error enum, for example a BigInt library addition or a Matrix addition would be much more convenient for scientists to use if it returned a BigInt or Matrix respectively.

1 comments

With bind style semantics its not that bad using result types for matrix or bigint.