3 ms·
>which can be much more sophisticated than what is commonly used in static systems, even with refinement types Can you elaborate on this? I have some experienc
by dharmaturtle 5y ago
>which can be much more sophisticated than what is commonly used in static systems, even with refinement types
Can you elaborate on this? I have some experience with Clojure, and have been relatively unimpressed with spec. Everything it does I can do with (refinement) types (I think). Reading over the Spec documentation it constantly talks about predicates... which is exactly what a refinement type is.
Spec/Clojure has the problem where it validates... but doesn't parse. See: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/ https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...