Hacker News new | ask | show | jobs
by jonasenordin 1259 days 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.)

2 comments

What makes C-style comments unnestable?
/**/ could potentially be nestable, they are just not defined as such.
They are defined to be non-nestable. Any appearance of */ terminates the comment.
> 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).