3 ms·
Creating a Result as in this blog post is an anti-pattern, for the reasons pointed out in the article. The best pattern that is available today is to continue t
by AndyKelley 3y ago
Creating a Result as in this blog post is an anti-pattern, for the reasons pointed out in the article. The best pattern that is available today is to continue to use an error union for the return type, and accept a mutable "diagnostics" parameter where it stores extra useful information about failures.
- deleted 3y ago[deleted]