On Sunday, 28 August 2016 at 13:26:26 UTC, Chris Wright wrote:
On Sun, 28 Aug 2016 08:35:06 +0000, ketmar wrote:
i have a perfect solution to this: don't write such code!

It would reflect poorly on the compiler if it failed to compile something simply because you added a few comments. Especially since each C-style comment is likely its own token. A not-absurd usecase is a person condensing several functions into one, which might involve separately commenting out several function bodies.

it has nothing to do with compiler: parser skips comments when peeking tokens. the only thing affected is simplistic syntax highlighter that can't do proper lookup.

Reply via email to