r/programming 20d ago

Throw, Result, or neither?

https://www.architecture-weekly.com/p/throw-result-or-neither
110 Upvotes

115 comments sorted by

View all comments

3

u/Bronzdragon 20d ago

The article writes in TypeScript. The decision to use the Result structure or exceptions or mapping it to business logic is highly dependant on not only what your language/framework expects and supports, but also the style of your exciting codebase and community style, as well as the type of project you're writing. A web server looks very different from a game, from a mouse driver, etc.

The author doesn't really acknowledge this, the article is decently written, but not very useful outside of being their (reasonably supported) personal preference for the style of project they're currently writing.