Suggestion regarding (.) and map
cgibbard at gmail.com
Thu Apr 24 16:42:44 EDT 2008
2008/4/24 Wolfgang Jeltsch <g9ks157k at acme.softbase.org>:
> Am Mittwoch, 23. April 2008 23:55 schrieb Cale Gibbard:
> > […]
> > Rename fmap to map
> This would be really great! There is no point in having a map just for lists
> and a general map for functors since the list map is the same as the list
> instance's functor map. And identifiers with a single lowercase letter in
> front or after a lowercase word (fmap, foldr, etc.) are not nice, in my
> > (like it was in Haskell 1.4),
> It really was this way in Haskell 1.4? Why was it changed?
> > and define (.) as a synonym for it.
> I don't think that this is reasonable. (.) corresponds to the little circle
> in math which is a composition. So (.) = (<<<) would be far better.
But the realisation here is that composition *is* functor application,
for a certain rather important functor. :)
More information about the Haskell-prime