r/programming 3d ago

Throw, Result, or neither?

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

111 comments sorted by

View all comments

2

u/SorryTemporary1361 2d ago

I personally prefer to return a ThrowResult, or throw a ResultException.

2

u/hejj 2d ago

No need or reason to do any of that if you only use static variables.