That makes really good sense. Thanks for the clear explanation!

Kev

On Jul 17, 1:56 pm, Richard Newman <holyg...@gmail.com> wrote:
> > 1:24 com.kkw.ss=> (comment 1s)
> > java.lang.NumberFormatException: Invalid number: 1s
> > java.lang.Exception: Unmatched delimiter: )
> > 1:25 com.kkw.ss=>
>
> >    Kindly let me know if I've done something abnormal.
>
> comment is a macro, not a syntactic element. A macro is evaluated  
> after read time (at macroexpansion time, funnily enough). That means  
> that anything inside a comment form *must* be syntactic, such that it  
> can be read by the reader.
>
> "1s" is not syntactic, as a brief spell with the reader will  
> demonstrate:
>
> user=> (read-string "1s")
> java.lang.RuntimeException: java.lang.NumberFormatException: Invalid  
> number: 1s (NO_SOURCE_FILE:0)
>
> If you want unsyntactic input in your file, comment it out with  
> semicolons.
>
> Adding true block comments -- #| |# -- is on the to-do list.
>
> -R
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to