3 ms·
I don't mean to advocate for systemd's approach, but they are not the first compiler to give meaning to information in comments. For example, there exists a Ja
by cbhl 10y ago
I don't mean to advocate for systemd's approach, but they are not the first compiler to give meaning to information in comments.
For example, there exists a Javascript compiler that puts static type annotations in the comments: https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler https://github.com/google/closure-compiler/wiki/Annotating-J...
- deleted 10y ago[deleted]
- planteen 10y agoFor static analysis and linting in C information gets held in comments as well. Unfortunatley, about the only thing everyone can agree on is: /* fallthrough */ For when you intentionally don't put a break in a case statement.