Re:ASCII and Unicode quotation marks
by tedunangst on Wednesday September 13, 2017 @06:05PM
(#15243166)
Debatable whether that would actually work in practice.
[ Parent
| on HN ]
Re:ASCII and Unicode quotation marks
by int_19h on Wednesday September 13, 2017 @09:58PM
(#15244453)
They don't work in C, but that's an arbitrary decision made by its designers. There are many languages that have balanced comments that can be nested. In OCaml, for example, this is legal:
(* nested (* comments *) work *)This is possible in D using /+ comments +/.
https://wiki.dlang.org/Commenting_out_code#Nested_comments
This allows commenting out code containing comments, which can be useful when debugging or giving usage examples in the code.