Y
Hacker News
new
|
ask
|
show
|
jobs
by
griffinmb
1647 days ago
Effects can definitely help, but a strong type system allows you to encode security concerns for compile time feedback as well.
See
https://gmb.is/refinement-types.html
for a non-Haskell example.
1 comments
Quekid5
1647 days ago
For a much simpler example: newtypes can make enforcing proper escaping[0] completely trivial and checked by the compiler. It's very similar to tainted values in Perl except enforced at compile time.
[0] No, not sanitization!
link
[0] No, not sanitization!