[Haskell-beginners] typeclass confusion
Isaac Dupree
ml at isaac.cedarswampstudios.org
Tue Aug 24 01:53:00 EDT 2010
On 08/24/10 01:38, Greg Best wrote:
> My reservations were with needing to define sin for each angle type (which I now think my method would force me to do anyway)
Yeah, the two methods are about equal in how much substantive code you
have to write. -- each allows a certain amount of code-sharing (you can
figure out how, with practice!), yet there's no "free lunch" (the code
doesn't *all* write itself, and it shouldn't).
More information about the Beginners
mailing list