Re:Python overtakes Java to become the second-most popular p...
by dtech on Friday November 06, 2020 @08:50AM
(#25007558)
If you program modern Java or Kotlin map and flatMap are everywhere. I'd say the debate whether functors and monads are useful is over.
[ Parent
| on HN ]
Re:Python overtakes Java to become the second-most popular p...
by _old_dude_ on Friday November 06, 2020 @09:42AM
(#25007889)
Java or Kotlin support functors or monads as design patterns, i.e. this is how a map/flatMap works with an Optional or a Stream.
The question is: if this support is enough or should the type system be enhanced so you can abstract over/compose a functor and/or a monad ?
The answer to this question is IMO still open.