
2 Dec
2012
2 Dec
'12
4:31 a.m.
Hi Christopher, On Sat, Dec 01, 2012 at 01:39:22PM -0900, Christopher Howard wrote:
(cos b * velocityC, sin b * velocityC)
vs.
appPair (\x -> (x $ b) * velocityC) (cos, sin)
Duplication isn't always a bad thing. Programming in Haskell can be quite tempting for code golfing. The first version is simpler, shorter and even understandable for non Haskellers. Sometimes the desire to look smart can result in quite horrible code. Greetings, Daniel