Closed toyboot4e closed 1 week ago
For example,
let !_ = runtimeAssert (0 <= p0 && p0 < nFT) $ "add: vertex out of bounds"
versus
let !_ = runtimeAssert (0 <= p0 && p0 < nFT) $ "add: vertex out of bounds (" ++ show p0 ++ ")"
The latter has better error message, but could be slightly slower? Measure!
Also use a common boundary check function.
Maybe not much. Closing.
For example,
versus
The latter has better error message, but could be slightly slower? Measure!