[Haskell-cafe] For class Monoid; better names than mempty & mappend might have been: mid (mident) & mbinop

Maciej Wos maciej.wos at gmail.com
Sun Jul 24 14:14:59 CEST 2011


Personally, I have nothing against mempty (although I agree that mid makes
more sense), but I don't like mappend at all. I wonder what happened to the
idea of using <> instead of mappend (that's what I always do). I think

a <> b <> c

looks so much better than

a `mappend` b `mappend` c

and it solves the name problem altogether.

-- Maciej
On Jul 24, 2011 3:42 AM, "KC" <kc1956 at gmail.com> wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110724/b0ca73d2/attachment.htm>


More information about the Haskell-Cafe mailing list