You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needs to be added to the variant in expression.hpp
Will fail to compile until there are overloads for eval and gen (the next step)
Add eval and codegen support
For eval just wrap the expression and call it, like we do with let normally. This will require codegen by letfn by wrapping it in a fn and the evaluating that
Thanks @jeaye! I started with the boilerplate and hit #260. I was hoping to get some pointers on how to implement recursion without vars but now I'm not sure if there is an existing example.
EDIT: I think I'm back on track, found an example to go off:
clojure.core=> ((fn a [] (when (< 0.5 (rand)) (println "iter") (a))))
iter
iter
iter
iter
nil
Needed
letfn
expression (followlet
)expression.hpp
let
normally. This will require codegen byletfn
by wrapping it in afn
and the evaluating thatletfn
macro is added and workingtest/jank/form/letfn
References
The text was updated successfully, but these errors were encountered: