2 ms·
The stated integer divide-by-zero behavior of golang is incorrect. Whether the process is sent a SIGFPE or not, from the programmer's experience a x/0 will cau
by foobiekr 10y ago
The stated integer divide-by-zero behavior of golang is incorrect.
Whether the process is sent a SIGFPE or not, from the programmer's experience a x/0 will cause the offending goroutine to panic with a divide by zero runtime error (integer divide by zero) which, unlike a signal, can be recovered.