|
|
|
|
|
by OskarS
433 days ago
|
|
For a configuration language, comments are absolutely crucial. You want to be able to say "# This option is set because <so-and-so>" to explain why you are configuring it this way to the next person that reads the code (or you, in the future). If the price to pay is that there is some risk some dummy might start parsing the comments as code, so be it. This is not a really a problem in "regular" programming languages, I don't see why it would be in a configuration language. |
|
But, then, I have to behave like a typical computer nerd and say..
Well ackchuallyyyyyy:
Browsers do stupid: <!--[if IE 8]>Linux does stupid: #!/bin/bash
C/C++ (preprocessor marcos) do stupid: #ifdef
https://en.wikipedia.org/wiki/Conditional_comment
https://en.wikipedia.org/wiki/Comment_(computer_programming)