plumatic / schema

Clojure(Script) library for declarative data description and validation
Other
2.4k stars 256 forks source link

Potential fix for schema.utils/fn-name #420

Closed gfredericks closed 5 years ago

gfredericks commented 5 years ago

This is to address issue #416.

I doubt there is a precise solution for what this function should do, as, at least in CLJS, it seems like there has to be some ambiguity introduced by the munging process.

I think we can at least aim for usable output, though.

I didn't make any attempt to figure out what the behavior for foo$$ was before commit 2e72125.

There might be more good test cases we can add. The ones I did required rather different expectations between clj and cljs, since apparently the two implementations produce rather different output.