Isn't this why you would use a doc string, and not a comment?

On Jul 8, 12:14 pm, Daniel Lyons <fus...@storytotell.org> wrote:
> On Jul 8, 2009, at 5:46 AM, Robert Campbell wrote:
>
> > It seems strange to me that Clojure doesn't support this concept  
> > natively
>
> Comments are part of the problem. Clojure's reader strips them out  
> while parsing before compiling the function, so you would lose them  
> during the first round-trip of read and print. Even a macro doesn't  
> really solve this problem; the only possible solution is to accept  
> comments that aren't really comments because the reader sees and  
> preserves them, or decide that they aren't an important part of the  
> function definition.
>
> I'm sure there are other hang-ups (closures are probably another) but  
> this is the first one that comes to mind for me.
>
> —
> Daniel Lyons
--~--~---------~--~----~------------~-------~--~----~
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