From daa8eb06d7acf1a20dcb667a1ba1c8a3cc28a38c Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 9 Jun 2021 10:48:33 +0200 Subject: [PATCH] Add doc [skip ci] --- doc/projects.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/projects.md b/doc/projects.md index 1f75b649..6a111d98 100644 --- a/doc/projects.md +++ b/doc/projects.md @@ -574,14 +574,15 @@ Populating Omniconf from env: 1 value(s) Enhanced try and throw for Clojure leveraging Clojure's capabilities. -``` text +``` clojure $ export BABASHKA_CLASSPATH=$(clojure -Spath -Sdeps '{:deps {slingshot/slingshot {:mvn/version "0.12.2"}}}') $ bb -e "(require '[slingshot.slingshot :as s]) (s/try+ (s/throw+ {:type ::foo}) (catch [:type ::foo] [] 1))" 1 ``` -NOTE: slingshot's tests pass with babashka, except for catching record types, -due to a difference in how records are implemented in babashka. +NOTE: slingshot's tests pass with babashka, except for catching record types by +name, due to a difference in how records are implemented in babashka. This may +be fixed later if this turns out to be really useful. ## Pods