-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Back in the day, we resolved #8 towards having only end-of-line comments (and nothing /* foo / bar */ style) because "PEG can't express that there have to be as many asterisks before the end slash as there were after the first one".
Now that raw strings are back and need this mechanism, I ask that we reconsider the comment situation.
The end-of-line solution worked but is far from satisfactory, especially when creating annotations automatically: rather than deciding the flow by width and structure alone, suddenly extending the list [1 / AES-CCM /, 2 / 3DES-YOLO /] can force a style change just because the next item is 3 # ChaCha20/Poly1305.
The proposal from back then is IMO still sound: A slash comment that has any number of asterisks after the slash needs to end with at least the same number of asterisks. This is compatible with existing use that was just no asterisks, and works with C-style comments (/* foo */).