by randomdata · 2y ago · 0 comments
Sure. That's precisely what exceptions (panics) are for: To deal with programmer mistakes identified at runtime that the compiler failed to detect. The use is appropriate.
If you want perfect compile-time safety, Go is not it. It prioritizes other tradeoffs. Such is engineering.
No comments yet.