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

Multiple classes in reify #603

Open
borkdude opened this issue Oct 1, 2020 · 0 comments
Open

Multiple classes in reify #603

borkdude opened this issue Oct 1, 2020 · 0 comments
Projects

Comments

@borkdude
Copy link
Collaborator

borkdude commented Oct 1, 2020

(reify Object (toString [_] "foo") clojure.lang.IDeref (deref [_this] :foo))
(reify
  IPending
  (-realized? [_]
    (not (identical? @atm obj)))
  IDeref
  (-deref [_]
    (let [val @atm]
      (assert (not (identical? val obj)))
      val)))
@borkdude borkdude added this to the 0.2.3 milestone Oct 17, 2020
@borkdude borkdude removed this from the 0.2.3 milestone Oct 18, 2020
@borkdude borkdude added this to To do in Babashka Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant