2

I'm using scheme to output some s-expressions to a port and I would really like to add comments to the stream I'm writing.

As the ; character will comment everything after I'm unsure how to actually do this, a comment is not an s-expression so quoting would not work

(display ;some comment) ; obviously not working
(display ';some comment) ; does not make sense
(display '(;some comment)) ; could make sense, does not work
edoput
  • 1,212
  • 9
  • 17

1 Answers1

3

You can escape ; using string quotes.

(display ";some comment") works.

merlyn
  • 2,273
  • 1
  • 19
  • 26