Slingshot enhance try and throw for Clojure leveraging Clojure’s capabilities.
It provide try+ and throw+ that is 100% compatible with Clojure and Java’s native try and throw both in source code and at runtime.
Furthermore, we can now throw+ map, records, or anything we want (You are kidding right? It must at least be an Java object.)
Real world example:
And now I normally use these snippet to help testing my functions.