This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-22
Channels
- # beginners (10)
- # boot (134)
- # cider (29)
- # clara (2)
- # cljs-dev (10)
- # cljsjs (2)
- # cljsrn (13)
- # clojure (76)
- # clojure-india (4)
- # clojure-ireland (1)
- # clojure-russia (20)
- # clojure-spec (11)
- # clojure-uk (7)
- # clojurescript (88)
- # core-async (5)
- # core-logic (3)
- # cursive (17)
- # datascript (5)
- # datomic (123)
- # hoplon (8)
- # klipse (6)
- # lambdaisland (2)
- # leiningen (4)
- # luminus (2)
- # off-topic (23)
- # om (23)
- # om-next (1)
- # onyx (20)
- # pedestal (2)
- # perun (2)
- # re-frame (11)
- # ring-swagger (3)
- # untangled (12)
Some food for thought: https://pchiusano.github.io/2017-01-20/why-not-haskell.html
@beppu I agree!
loved the credit card example
@pesterhazy I'm only about 1/4th of the way through the book (so I haven't seen the credit card stuff yet), but an early big revelation for me was that exceptions weren't functional. The monadic error handling alternative was something I really wanted to know more about.
I've come to accept exceptions
they're actually not that bad
@pesterhazy I went back to look for the credit card stuff, and I saw it was in the first chapter. I had totally forgotten about it!
I've tried using monads in clojure to return value-or-failure, but it's messy
When I get a chance, I'm looking to give this library a spin for monadic error handling: https://github.com/adambard/failjure
that's what I used!
adam has a great blog post about that too
my use case wasn't right though
think credit card processor failure in an order process
exceptions are actually a good fit for that ๐