Y
Hacker News
new
|
ask
|
show
|
jobs
by
ademarre
4471 days ago
>
law-abiding implementations
Are you referring to category laws?
1 comments
dllthomas
4471 days ago
Lots of typeclasses have associated "laws" that well-behaved instances are expected to abide by.
link
laureny
4471 days ago
But these are not enforceable by the type system (at least in Haskell), kind of supporting my point that types alone are rarely sufficient :)
link
dllthomas
4471 days ago
I don't think anyone believes that types are sufficient outside, at least outside of a dependently typed language (at which point you'll have more diversity of opinion).
link
tel
4470 days ago
Types in Haskell won't buy you 100% of what you need, but they may buy you 50%.
link