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

24 Jul
2011
24 Jul
'11
1:54 a.m.
On 24.07.2011 08:20, Ivan Lazar Miljenovic wrote:
On 24 July 2011 04:41, KC
wrote: It would be easier for beginners to "grok".
I quite like mempty/mappend; they (f)map onto the [] instance as a mnemonic. Similarly, MonadPlus (as a concept) maps to mzero/mplus quite well (and it's distinguishing the sets of empty/append and zero/plus that helps me remember which goes with what). mid and mbinop seem a bit more arbitrary, and don't 'look' as nice to me (though that's probably just because they're not as familiar as what we already have).
5094
Age (days ago)
5094
Last active (days ago)
0 comments
1 participants
participants (1)
-
Arlen Cuss