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

rebuild RCF using clojure/script analyzer (wip) #50

Closed
dustingetz opened this issue Apr 7, 2022 · 1 comment
Closed

rebuild RCF using clojure/script analyzer (wip) #50

dustingetz opened this issue Apr 7, 2022 · 1 comment

Comments

@dustingetz
Copy link
Member

dustingetz commented Apr 7, 2022

This is the current WIP dev stream which supports tests like:

(tests 1 := 1)
(tests (let [x 1] x := 1)) — implicit do
(tests (do (do 1 := 1)))
(tests (! 1) % := 1)
(tests (future (! 1)) % := 1)
(tests (do (! 1) % := 1))
(tests (do (future (! 1)) % := 1))
(tests (let [x 1] (! x) := 1)) 
(tests (do (future (! 1)) % := 1))

thereby paving the way for userland syntax macros like (defmacro is [a b] `(do ~a := ~b)), custom assertions, resource cleanup macros, future syntax extensions.

Fixes #46 #44 #42 #40 #34 #32
and is infrastructure for #47 #39 #38 #33

@dustingetz
Copy link
Member Author

dustingetz commented Apr 7, 2022

Essentially RCF gives meaning to (do a := b) and (do (rcf/! a) rcf/% := b) (which are fully compatible with Clojure) and we use the Clojure/Script analyzer to do this correctly in deeply nested forms including interpreting Clojure special forms that have implicit do.

@dustingetz dustingetz changed the title rebuild RCF using clojure/script analyzer rebuild RCF using clojure/script analyzer (wip) Apr 7, 2022
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