this post was submitted on 21 Nov 2024
288 points (90.7% liked)
Programmer Humor
32561 readers
384 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.