DrRacket怎么写注释
drracket吧
全部回复
仅看楼主
level 8
iliku 楼主
刚开始学习scheme 用DrRacket写代码,但是有一些代码当时理解,但是过后怕忘记,请问在DrRacket怎么写注释
2016年09月28日 18点09分 1
level 8
iliku 楼主
好吧,是用;来注释了,[小乖]
2016年09月29日 02点09分 2
level 11
1.3.9 Reading Comments
;
starts a line comment. When the reader encounters ;, it skips past all characters until the next linefeed (ASCII 10), carriage return (ASCII 13), next-line (Unicode 133), line-separator (Unicode 8232), or paragraph-separator (Unicode 8233) character.
#|
starts a nestable block comment. When the reader encounters #|, it skips past all characters until a closing |
#. Pairs of matching #
| and|# can be nested.
#;
starts an S-expression comment. When the reader encounters #;, it recursively reads one datum, and then discards it (continuing on to the next datum for the read result).
#!
(which is
#! followed by a space) or #
!/ starts a line comment that can be continued to the next line by ending a line with \. This form of comment normally appears at the beginning of a Unix script file.
Examples:
; comment reads equal to nothing

#| a |#
1 reads equal to 1
#|
#| a |#
1 |# 2 reads equal to 2
#;1 2 reads equal to 2
#!/bin/sh reads equal to nothing
#! /bin/sh reads equal to nothing
2016年10月10日 02点10分 3
level 11
常用的就是
;这是一行注释
#|







|#
2016年10月10日 02点10分 4
好的,谢谢,我还以为贴吧木有人呢 感激
2016年10月15日 02点10分
1