News for hackers. Stuff that matters.
Re:Monads are monoids in the category of endofunctors by Twisol on Thursday September 09, 2021 @11:07PM (#28477352)
I do think familiarity plays a big role. I find the Haskell syntax much more pleasant than Java, even though I'm perfectly familiar with both.

The equivalent signature in Java (if we could abstract over type functions) would be:

    interface Functor<F<_>> {
      <A, B> Function<F<A>, F<B>> map(Function<A, B> f);
    }
You'll find very similar in Scala's `cats`, up to some currying and reordering. [0]

[0] https://typelevel.org/cats/typeclasses/functor.html

Re:Monads are monoids in the category of endofunctors by Littlebigo on Thursday September 09, 2021 @11:15PM (#28477410)
I absolutely agree, I was just adding the explanation for anyone unfamiliar with the syntax.
Re:Monads are monoids in the category of endofunctors by Twisol on Thursday September 09, 2021 @11:17PM (#28477432)
And I was building on yours :) I hope you didn't mind.