clj-commons / potemkin

some ideas which are almost good
572 stars 53 forks source link

Resolve imported vars at runtime, not read time #73

Open NoahTheDuke opened 1 year ago

NoahTheDuke commented 1 year ago

If a var has tag metadata attached to the var symbol (not on the vector, as is the preferred method for return types in functions), it will be resolved when import-* is called during read time. This currently doesn't break anything, but if the proposed Clojure patch for CLJ-1929 is accepted, then code that's so tagged will break.

Includes a test that will break without the associated change if the Clojure patch is accepted.

Closes #72