[Haskell-cafe] why are implicit types different? (cleanup)
John Meacham
john at repetae.net
Fri Dec 1 17:34:50 EST 2006
On Tue, Nov 28, 2006 at 11:59:01AM -0500, S. Alexander Jacobson wrote:
>
> I ended up solving it by using a typeclass. My general experience of
> implicit types has been that they end up being a lot less useful than
> they appear. Getting the types right ends up being difficult and it
> is usually better just to be in a monad or as in this case to use
> typeclasses. I've begun to think of use of implicit types as a sign a
> "bad smell" in the code and if I have used one somewhere, I try to
> eliminate it because doing so usually results in better code overall.
yes. they are just a bad idea for many reasons IMHO. I think they should
be purposefully and forcefully retired so they don't trip up new users
to haskell who think they are the right way to do things.
John
--
John Meacham - ⑆repetae.net⑆john⑈
More information about the Haskell-Cafe
mailing list