Re:A Gentle Introduction to Liquid Types
by marcosdumay on Sunday September 03, 2023 @11:50PM
(#37376958)
The type system removes checks that are redundant or unnecessary given the rest of the code. It doesn't assume things about external data.
[ Parent
| on HN ]
Re:A Gentle Introduction to Liquid Types
by moomin on Monday September 04, 2023 @08:33AM
(#37379887)
Yeah, 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.