What are practical uses of applicative style?

后端 未结 11 687
误落风尘
误落风尘 2021-01-30 01:32

I am a Scala programmer, learning Haskell now. It\'s easy to find practical use cases and real world examples for OO concepts, such as decorators, strategy pattern etc. Books an

11条回答
  •  离开以前
    2021-01-30 02:07

    I finally understood how applicatives can help in day-to-day programming with that presentation:

    https://web.archive.org/web/20100818221025/http://applicative-errors-scala.googlecode.com/svn/artifacts/0.6/chunk-html/index.html

    The autor shows how applicatives can help for combining validations and handling failures.

    The presentation is in Scala, but the author also provides the full code example for Haskell, Java and C#.

提交回复
热议问题