Unexpected "#_ - Discard" error

2021-04-03 Thread zen...@gmail.com
I'm reading https://clojure.org/guides/weird_characters#_discard and run into this error: *user> #_({1:2})* *Syntax error reading source at (REPL:247:14).* *Invalid number: 1:2* Ty. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Re: Unexpected "#_ - Discard" error

2021-04-03 Thread Alex Miller
The discard reader will read, then discard (so the following form still has to be readable). In this case, the 1:2 starts with a number so is parsed as one, but that's an invalid form. On Saturday, April 3, 2021 at 8:50:49 AM UTC-5 zen...@gmail.com wrote: > I'm reading https://clojure.org/guid

Re: Unexpected "#_ - Discard" error

2021-04-03 Thread zen...@gmail.com
Thank you for the clarification. I save a 'curl' usage for posting json to a separate text file versus in .clj for now. * The docs suggest that "The form following #_ is completely skipped by the reader (This is a more complete removal than the comment macro which yields nil).". This can prove

Re: Unexpected "#_ - Discard" error

2021-04-03 Thread zen...@gmail.com
Thank you for the clarification. I'll use ';' instead. * The docs suggest that "The form following #_ is completely skipped by the reader (This is a more complete removal than the comment macro which yields nil).". This can prove useful for debugging situations or for multiline comments. * O

Re: Unexpected "#_ - Discard" error

2021-04-03 Thread Laurens Van Houtven
On Sat, Apr 3, 2021 at 08:50 zen...@gmail.com wrote: > I'm reading https://clojure.org/guides/weird_characters#_discard and run > into this error: > > *user> #_({1:2})* > > *Syntax error reading source at (REPL:247:14).* > *Invalid number: 1:2* > #_ is a reader macro—so what’s inside still has t