280
Using comments as arguments in python.
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
IMO comments should never ever be parsed under any circumstances but I probably don't know enough to really speak on this
It's quite useful to parse comments and generate documentation from them, either as plain old hypertext or in your editor with LSP.
That sounds fine if you have something reading the file independently. But the actual executable code should not be able to access its own comments.
capability is fine. Conflation is stupid. You can also use code to erase itself, but thinking that's a good idea is generally wrong. But to remove that, you also remove the general ability to erase files.
Comments aren't normally accessible unless you (independently) open and read the source code file as you would with any arbitrary file.