clj-kondo

https://github.com/clj-kondo/clj-kondo
dominicm 2020-05-21T14:49:36.230800Z

I have a custom macro! I don't suppose there's something for a try variant already? I use pattern matching instead of a binding so you do this:

(try+
  (catch {:a ?a} (prn ?a)
  (catch Some.Class.Extending.IExceptionInfo {:b ?b} (prn ?b)))
I'm using meander for the binding - which I appreciate kondo won't support at least for a while. I was hoping I could do something to alleviate the pain though, as constrained as possible.

borkdude 2020-05-21T14:54:40.231400Z

@dominicm not really I'm afraid, except for disabling unresolved symbols etc in this macro

dominicm 2020-05-21T14:54:59.231500Z

Would it be possible to mark things unresolved only in catch?

borkdude 2020-05-21T15:40:06.231900Z

don't think so, because it's not really a var, more like a macro local thing

borkdude 2020-05-21T15:43:14.232300Z

unless you do something like :require [my.terrific.macro :refer [catch]]

dominicm 2020-05-21T16:40:18.232600Z

Nope :(

dominicm 2020-05-21T16:50:36.233100Z

I'll have to get my library very popular so I can pr it :)