What language(s) have comments with side effects? In essence, comments which are not comments….
What language(s) have comments with side effects? In essence, comments which are not comments….
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I can think of several places where comments aren’t really comments.
And then, considerably more obscurely:
--#‘ was used by D4GL to include material only applicable to D4GL; I4GL would see that as a comment. The inverse notation was ‘--@‘, which looked like a comment to D4GL but was treated as active material by I4GL.And, even more obscurely:
#‘ (hash) marked the start of a comment outside of strings – up to the next newline, as does ‘--‘ (double-dash). Also, ‘{...}‘ (braces) enclose multiline comments.{...}‘ which is, of course, perfectly legitimate in shell. The shell script was a data-driven code generator that copied itself to the top of the output, and then generated about 100 functions which were all depressingly similar but slightly different (in a language without templates or a pre-processor). The code had to validate what was in the database for a given ship against incoming data from an external source (Lloyds of London, in fact), to see what had changed since the last time the external data was received. Non-trivial comparison work, especially since it had to deal with database (SQL) nulls.