3 ms·
> A panic? Sure. That's precisely what exceptions (panics) are for: To deal with programmer mistakes identified at runtime that the compiler failed to detect.
by randomdata 3y ago
> A panic?
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.