Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
haasted
· 7y ago · 0 comments
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?
Comments
[–]
bt848
7y ago
The 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.