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

Yves Parès limestrael at gmail.com
Sun Jul 24 17:15:38 CEST 2011


Don't forget that some languages use <> to mean "different" (as if
"different" meant always "superior or inferior"...), so some beginners might
get confused.

I personally often define the alias:

(<+>) = mappend

2011/7/24 Maciej Wos <maciej.wos at gmail.com>

> 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:
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110724/c21df8f1/attachment.htm>


More information about the Haskell-Cafe mailing list