Line Comments in Standard ML

icco picture icco · Jan 8, 2010 · Viewed 21.6k times · Source

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?

Answer

Victor Nicollet picture Victor Nicollet · Jan 8, 2010

You're stuck with block comments.

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