2 ms·
Yes, comments tend to be turned over time into hints, directives, etc, etc, etc. But that doesn't change the fact that people put comments into machine protoco
by btilly 7y ago
Yes, comments tend to be turned over time into hints, directives, etc, etc, etc.
But that doesn't change the fact that people put comments into machine protocols.
For another example, lots of machine to machine protocols specify XML. Such as SOAP. They therefore all support comments.
In accord to the general trend, eventually they get abused into having a semantic meaning. For example https://support.ptc.com/help/windchill/wc111_hc/whc_en/index.html#page/Windchill_Help_Center/IEUG_SOAPWritingTasks_IEUG_SOAPComments.html https://support.ptc.com/help/windchill/wc111_hc/whc_en/index... shows how one system uses comments in SOAP to create documentation and a WSDL that lets interfaces to your code to be automatically generated.
And so comments eventually become executable. But that doesn't change the fact that comments can exist in machine to machine formats.
- Mikhail_Edoshin 7y agoBTW, XML actually has what can be called "executable comments": processing instructions. They are very basic, but unlike plain comments they have two parts: target name and opaque instruction for the target. If one needs to use comments for some sinister purpose, at least processing instructions may be a better fit.