Discussion about this post

User's avatar
Andrey Vorobyov's avatar

What you did here is standard in golang. Both exceptions and error returning has pros and cons. It's not one better than other

Expand full comment
Raul Junco's avatar

Using exceptions for control flow really messes with the logic.

It breaks the natural flow, makes things harder to read, and you’re left guessing what might throw and where.

Honestly, one of the biggest causes of unnecessary complexity.

Expand full comment
1 more comment...

No posts