Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
staticassertion
· 6y ago · 0 comments
A nice method I've found (and seems popular) is to use unsafe but use a debug_assert!. That way your tests will fail loudly if you hit the assertion, but you won't take a hit in production.
Comments
No comments yet.
Better HN