Search code examples
smlsmlnj

Line Comments in Standard ML


I'm learning ML, with the SML/NJ dialect. What I'm trying to figure out is if there is a line comment operator. I found the block comment operator, (* ... *), but I really miss line comments.

Suggestions? Or am I just stuck with block comments?


Solution

  • You're stuck with block comments.

    On the other hand, block comments can be nested: (* (* *) still comment here *)