top | item 34268738

(no title)

jonasenordin | 3 years ago

Nestable comment syntax is also nice. At least some MLs (eg SML) has it, that I know of.

Indentation-sensitivity can also solve similar problems. (Indentation does not have to exclude requiring graphic termination. A formal language can require both. Or just a helpful tool.)

(Also agree with 'kebab-case', although the name is new to me and a bit weird.)

discuss

order

lolinder|3 years ago

What makes C-style comments unnestable?

gpderetta|3 years ago

/**/ could potentially be nestable, they are just not defined as such.

funcDropShadow|3 years ago

They are defined to be non-nestable. Any appearance of */ terminates the comment.

still_grokking|3 years ago

> Nestable comment syntax is also nice. At least some MLs (eg SML) has it, that I know of.

Scala has it too. (But OK, Scala is a kind of ML).