3 ms·
The type system removes checks that are redundant or unnecessary given the rest of the code. It doesn't assume things about external data.
by marcosdumay 3y ago
The type system removes checks that are redundant or unnecessary given the rest of the code. It doesn't assume things about external data.
- moomin 3y agoYeah, anything you assert has to be proved at runtime. Liquid Haskell just a) checks your assertions are consistent with the type returned and b) avoids you having to check again. You could theoretically remove all the unnecessary checks by hand, but it’s tricky.