4 ms·
> Panics should be used for truly unexpected conditions, such as a nil pointer. Exceptional cases, if you will. I find it funny when people say Go doesn't hav
by randomdata 6y ago
> Panics should be used for truly unexpected conditions, such as a nil pointer.
Exceptional cases, if you will.
I find it funny when people say Go doesn't have exceptions when Go is the only mainstream language that advocates for and prefers the use of exceptions.