サーチ…


備考

最も一般的なコメントタイプは、行とs式のコメント(それぞれ;#;を使用)です。

コメントのタイプに応じて1から3のセミコロンを使用するのが一般的です。参照する ???

一行のコメント

; We make single line comments by writing out text after a semicolon

コメントをブロックする

#| We make
block comments
like this |#

S式のコメント

#;(define (commented-out-function x)
    (print (string-append "This entire "
            "s-expression is commented out!")))

at-expsのコメント

モジュールが次のような式で使用しているとき:

#lang at-exp racket/base

または

#lang scribble/manual

あなたは以下のタイプのコメントにアクセスできます:

@;{Block text that goes
   until the closing
   brace.}

と同様:

@; Single line text.

at-expsだけを使用する言語(ほとんどの書記言語など)を使用している場合、これらのタイプのコメントのいずれかを使用する必要はありません。



Modified text is an extract of the original Stack Overflow Documentation
ライセンスを受けた CC BY-SA 3.0
所属していない Stack Overflow