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

Gábor Lehel illissius at gmail.com
Mon Jul 25 11:18:18 CEST 2011


2011/7/25 Yves Parès <limestrael at gmail.com>:
> 2011/7/25 Paul R <paul.r.ml at gmail.com>
>>
>> Some references state that the monoid binary operation is often named
>> "dot" or "times" in english. That does not mean the operator must be
>> `dot`, `times`, (<.>) or (<x>) but at least the doc should provide
>> a single, consistent and pronounceable name for it, whatever its
>> spelling.
>
> That is the problem when changing a function into an operator: the
> pronunciation.
> There should be a page somewhere that sums up how to pronounce the most
> common operators.
>>>= is "bind", ok, but how do you pronounce >> or <*>, for instance?

<*> is "apply", I believe. >> could perhaps be "then", though I
haven't seen this anywhere.

>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>



-- 
Work is punishment for failing to procrastinate effectively.



More information about the Haskell-Cafe mailing list