Brendan Zabarauskas@brendanzab·Jul 21, 2021A nice tutorial on returning multiple errors from a type checker in OCaml (as opposed to just failing at the first one):Quote TweetVladimir Keleshev@keleshev · Jul 21, 2021[Blog] Advanced Error Handling in OCaml https://keleshev.com/advanced-error-handling-in-ocaml…127
Bruce Mitchener@ArmyOfBruce·Jul 22, 2021Have you used a condition system ala Common Lisp / Dylan? Could also do something similar with effects, I guess.11
Brendan Zabarauskas@brendanzab·Jul 22, 2021Yeah, I think you could definitely use effects and handlers for something like this! Not sure about conditions – I only brushed up against them when Rust had a condition system, but they didn't last long enough for me to understand them!11
Bruce Mitchener@ArmyOfBruce·Jul 22, 2021In CL, you can even let the user handle the error and replace a form in the code via a condition handler.11
Brendan Zabarauskas@brendanzabReplying to @ArmyOfBruce and @zeeshanlakhaniYeah, I think effects and handlers let you do similar – would be interesting to see a comparison of the approaches!1:28 AM · Jul 22, 2021·Twitter Web App2 Likes