Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Comments in the REPL cause reader exception errors. #74

Closed
Ilazki opened this issue Feb 8, 2017 · 0 comments
Closed

Comments in the REPL cause reader exception errors. #74

Ilazki opened this issue Feb 8, 2017 · 0 comments

Comments

@Ilazki
Copy link

Ilazki commented Feb 8, 2017

Title says it all. Semicolons and #_ syntax generate reader exception errors, only (comment) does not. Example from the Lumo REPL:

cljs.user=> ;; Comment
#error {:message EOF, :data {:type :reader-exception}}
cljs.user=> (+ 2 2) ; Comment
4
#error {:message EOF, :data {:type :reader-exception}}
cljs.user=> #_(+ 2 2)
#error {:message EOF, :data {:type :reader-exception}}
cljs.user=> (comment (+ 2 2))
nil

And here's what happens in Planck, which behaves more reasonably:

cljs.user=> ;; Comment
cljs.user=> (+ 2 2) ; Comment
4
cljs.user=> #_(+ 2 2)
cljs.user=> (comment (+ 2 2))
nil

It's a minor thing I noticed it when I pasted some code in, comments and and all. Found it surprising that Lumo started spewing errors at me, since I've never had Clojure or Planck react badly to comments.

pesterhazy added a commit to pesterhazy/lumo that referenced this issue Feb 20, 2017
pesterhazy added a commit to pesterhazy/lumo that referenced this issue Feb 20, 2017
pesterhazy added a commit to pesterhazy/lumo that referenced this issue Feb 20, 2017
pesterhazy added a commit to pesterhazy/lumo that referenced this issue Feb 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants