
14 Nov
2007
14 Nov
'07
10:35 p.m.
On Nov 14, 2007, at 21:50 , Albert Lee wrote:
dotp :: Num a => [:a:] -> [:a:] -> a
You're forcing Num a => a here, whereas the list one probably specializes to Integer. Seems like a bad way to go to me; polymorphism is expensive. (Whether it's *that* expensive, I couldn't tell you.) -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH