replete-ios icon indicating copy to clipboard operation
replete-ios copied to clipboard

Can't evaluate multiple forms at once

Open aengelberg opened this issue 9 years ago • 1 comments

Errors vary wildly depending on input types.

=> () ()
undefined is not an object (evaluating 'cljs.core.List.EMPTYcljs.core') nil
=> 1 2
(1) is not a function. (In '(1)(2)', '(1)' is 1) nil
=> 'a 'b
Unexpected keyword 'new'. Parse error. nil

aengelberg avatar May 16 '16 01:05 aengelberg

Yep. This is probably an easy fix—having it iterate over reading a form, evaluating it, and then proceeding with the remainder.

As an aside, this kind of stuff is fixed in Planck, and there is actually a patch in queue for the official ClojureScript REPL that would fix the same there http://dev.clojure.org/jira/browse/CLJS-1572

Dunno why I never thought to try this in Replete :)

mfikes avatar May 16 '16 01:05 mfikes