2 ms·
I would suspect that this particular issue is not necessarily a defensive coding problem. https://gist.github.com/andrewrk/182ace5dee6c4025d8c4b0ca22ca98ca htt
by mcguire 9y ago
I would suspect that this particular issue is not necessarily a defensive coding problem.
https://gist.github.com/andrewrk/182ace5dee6c4025d8c4b0ca22ca98ca https://gist.github.com/andrewrk/182ace5dee6c4025d8c4b0ca22c...
https://github.com/andrewrk/libsoundio/blob/fc96baf8130b52ba6fe928e5f629afd55ecc7321/src/alsa.c#L802 https://github.com/andrewrk/libsoundio/blob/fc96baf8130b52ba...
I've written that code before, and I know better (but then, all the world's an x86 box, right?) But first, I'm not sure how to make that code not broken (yes, that's an education issue), and second, the same arguments can be made about all the issues Rust is designed to prevent.
This really should be a compiler warning.