4 ms·
I’m interested in how this works in Go, which doesn’t have a built-in assert statement. Do you have somewhere I can read up on it?
by haasted 7y ago
I’m interested in how this works in Go, which doesn’t have a built-in assert statement. Do you have somewhere I can read up on it?
- bt848 7y agoThe form of "assert" is not important. It is isomorphic with if (a>b) {exit}. The compiler can assume that thereafter a<=b. until one of them is modified.