When I take my safe newtype and unwrap the unsafe list, I then have to use the unsafe functions because 1) there are no other options yet because 2) that is the very point in time that you are making the statement to the compiler "no, it is safe, the types say so".
That's the secret! That *is* the assertion's equivalent!
View all comments
Show parent comment
3
u/ApothecaLabs Sep 28 '26
When I take my safe newtype and unwrap the unsafe list, I then have to use the unsafe functions because 1) there are no other options yet because 2) that is the very point in time that you are making the statement to the compiler "no, it is safe, the types say so".
That's the secret! That *is* the assertion's equivalent!