There is no limit to the amount of machinery that developers will create to avoid: 1. Adding a function parameter 2. Passing a function parameter 3. Applying a function 4. Composing a function See: DI, implicits, subtyping, lawless type classes, and so much more.
Unless you're using a language with dependent types, no type class has any enforced laws.
-
-
We try to prove the laws aren't satisfied via property checks, which provides evidence of correctness—the laws just aren't enforced at compile time. But some type classes have no laws to check.
-
What? Dynamic type checking? Next thing we know, you'll be writing type classes in Lisp…https://github.com/fare/lil-ilc2012 …
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!