[ANN] defexception 0.1.0: a library for dynamically defining exception types in Clojure

654 views
Skip to first unread message

Nathan Marz

unread,
Aug 22, 2019, 2:43:32 PM8/22/19
to Clojure
Authored by Bruce Hauman, defexception makes it really easy to define new exception types in Clojure just by doing (defexception MyException). See the README for details.

Matching Socks

unread,
Aug 22, 2019, 8:40:59 PM8/22/19
to Clojure

Swell!  This looks like a super duper cure for a perennial speed bump.  And impressive that you took it all the way back to Clojure 1.4!  

By the way, is clojure.asm considered internal?  

Alex Miller

unread,
Aug 24, 2019, 8:41:19 AM8/24/19
to Clojure
The clojure.asm namespaces are an internal vendored version of the asm library. It is NOT considered to be part of the public Clojure API. We periodically update it and have no control over that API, which does sometimes include breaking changes.

External users of Clojure should never depend on it directly. Instead they should make their dependency on asm visible by declaring a dependency on the asm library and using their public api.

Nathan Marz

unread,
Sep 16, 2019, 11:30:20 PM9/16/19
to Clojure
We don't want such a tiny library to pull in any other dependencies. The subset of ASM used by defexception is so core and so minimal that we think it's extremely unlikely to ever break. A dependency collision with an ASM used by another library seems far more likely.
Reply all
Reply to author
Forward
0 new messages