klipse
klipse copied to clipboard
Comments evaluate to nil
(+ 3 4) ;; foo
Expected: snippet evaluates to 7.
Actual: snippet evaluates to nil
.
This occurs frequently when klipsifying clojuredocs snippets such as https://clojuredocs.org/clojure.core/map
The solution is to read and check the expression before evaluating it.
in core-eval
of https://github.com/viebel/klipse/blob/master/src/klipse/lang/clojure.cljs
Something like: if the expression is not nil
but it is read as nil
then skip it