Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function that returns itself by name should be equal to function #587

Closed
borkdude opened this issue Jul 10, 2021 · 0 comments
Closed

Function that returns itself by name should be equal to function #587

borkdude opened this issue Jul 10, 2021 · 0 comments

Comments

@borkdude
Copy link
Collaborator

This should return true:

(def f (fn foo [] foo)) (= f (f))

Context: it's part of the contract in clojure.data.json that a value-fn can return itself to omit values.
https://github.com/clojure/data.json/blob/66f946edc83f59034f0c139cffe737367216c382/src/main/clojure/clojure/data/json.clj#L255

borkdude added a commit that referenced this issue Jul 10, 2021
borkdude added a commit that referenced this issue Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant