Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Add :call? false option for types that do not implement ifn #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brandonbloom
Copy link

I have no idea if you'd actually want this PR, but I figured I'd share it with you in case anybody else ever does.

In summary, I wanted to test a type that was like 90% Clojure's collections, but doesn't implement IFn. An example of something like this in Clojure is tagged-literal, which offers lookup via :tag and :form, but does not implement IFn. For me, I wanted to be able to have an object that behaved like a function, but with some map-like metadata. It's sorta a goofy use case, hence you may not want this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant