Hacker News new | ask | show | jobs
by user-the-name 1758 days ago
The second by far, especially if you just remove the else statements and let program flow continue naturally.

There are very good reasons to prefer Result over exceptions, but this example is not one.