4 ms·
While it's an excellent example, I wonder if people don't see "endoMonoid" and run away screaming. I really wonder if people would have different reactions if
by norswap 11y ago
While it's an excellent example, I wonder if people don't see "endoMonoid" and run away screaming.
I really wonder if people would have different reactions if this was presented as "Addable" instead.
- lmm 11y agoYeah, I wonder about calling it "addable" or "mergeable". But neither of those really captures the full generality of it - would you expect composing functions to count as "adding" or "merging"?
- epidemian 11y ago"Combinable"? Integers can also be combined with other operations, like multiplication, min or max. None of those sound like "adding" or "merging" them to me.
- norswap 11y agoGood point. Though a good side effect is that when you see it used that way you "a-ha!", or you figure it yourself you feel smart. Something like "endoMonoid" doesn't immediately suggest these use cases either (unless you're a math buff) but if you get to the explanation you're just left with the feeling that this is what was intended all along, not a neat breakthrough. That's reverse API psychology for you :D