3 ms·
> I think folding/lint/etc. markers are poor examples here, because they're > basically annotations for other tools which seems entirely fine. > > However comme
by moring 4y ago
> I think folding/lint/etc. markers are poor examples here, because they're
> basically annotations for other tools which seems entirely fine.
>
> However comments that affect the behaviour of the code itself are really
> much less fun to deal with.
I think there is no clear distinction between "hints for other tools" and "the behavior of the code itself" unless you implicitly assume a set of tools that define "the behavior of the code itself".
You could argue that HDL synthesis hints don't change the behavior of the code, nor do SQL optimizer hints.
I understand why you think that IDE folding hints are poor examples, but you would still force unrelated tools to leave those "comments" intact, possibly in cases where there is no clear definition of "intact" (massive transformations to the JSON structure). xkcd "spacebar heating" applies: https://xkcd.com/1172/ https://xkcd.com/1172/