Content deleted Content added
Gnomingstuff (talk | contribs) rv 2022 test edit |
Stevebroshar (talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 116:
The following proposed clarification seems fine, except if the goal is exacting precision, then there are a few issues, some of which are enumerated below:
<div style="border:1px solid black;">
<
</div>
Line 143:
:::'''Source language translator:''' The point you were making there was not lost on me. The problem was, by introducing exacting precision on one issue, you were (potentially) introducting *new inaccuracies* on other issues. For example:
<div style="border:1px solid black;">
other processors (documentation extractors etc.) have to choose formats which are a particular form of those <
</div>
:::That's nice, except your original proposed refinement ''did not even acknowledge the existence of other types of processors''. Moreover, you seem to be assuming "the source language translator" is some kind of monolithic, definitive authority ''rather than merely an implementation of what is *truly* authoritative: the language specification itself''. What about language translators that do not fully conform to the specification? [[User:Dreftymac|dr.ef.tymac]] 17:39, 1 January 2007 (UTC)
Line 157:
::That doesn't invalidate the accuracy of the statement though does it? The text doesn't say ''"it is both necessary and sufficient to call X a comment if it is discarded"''. It just says comments are (generally) discarded. How is it even possible to write a generally accessible article introduction if accurate-yet-not-categorically-exhaustive statements are completely forbidden, especially since clarifying footnotes are always available to satisfy more "fastidious" readers? [[User:Dreftymac|dr.ef.tymac]] 12:45, 2 January 2007 (UTC)
::I am not for or against the change. I'm just pointing out that, like ''ignored'', there are ways of reading ''discarded'' that suggest unintended meanings. [[User:Derek farn|Derek farn]] 13:58, 2 January 2007 (UTC)
'''Back to square zero - just leave it as is:''' Since this issue was previously dropped mid-topic; and since the only (cited) proposed phrasing for "introductory style text" was "comments are ignored"; and since the only provided rationale for opposing this phrasing was <
== refinements to definition of "comment" ==
Line 222:
:What is the "curled corner effect"? The only thing weird about the current image that I noticed was that the last line of code (before the closing brace) is mis-indented and the associated comment is truncated:
<syntaxhighlight>
frame.pack();
frame.show(); // display the fra
}
</syntaxhighlight>
:when it should read
<syntaxhighlight>
frame.pack();
frame.show(); // display the frame
}
</syntaxhighlight>
:It might be an SVG bug, though. In any event, IMHO there's no real reason to have an image on this article anyway; it just shows the same thing the code samples show, but in a less reader-friendly fashion. --[[User:Quuxplusone|Quuxplusone]] 02:20, 10 August 2007 (UTC)
Line 377:
:Nothing heard (and I agree) so I performed the merge. -- [[User:Mikeblas|mikeblas]] ([[User talk:Mikeblas|talk]]) 01:52, 9 September 2024 (UTC)
== Off the mark in a few places ==
WRT current open: "In computer programming, a comment is a human-readable explanation or annotation in the source code of a computer program" all source code should be human-readable; not just comments. I think the point is that a comment is gibberish to the computer, yet meaningful to a human. So, "human-readable" is not wrong when describing a comment, but it's misleading since saying that implies that some adjacent concept is not human-readable. And the most adjacent concept is the non-comment code.
WRT short desc: "Explanatory note in the source code of a computer program" A comment is does not necessarily explain something. The content of a comment could be nonsensical or gibberish; yet it's still a comment. A comment is simply text embedded in source code that the translator (i.e. compiler) ignores. Often it explans something, but to say a comment is explanatory is an overreach.
To say that a comment is in source code of ''a computer program'' is overstating as well. I can write a code fragment with a comment, and IMO that's still a comment. A comment need not be part of any computer program to still be a comment.
In general, this article is written in touchy-feely wording that is close to being right and covers typical scenarios. But, it's not accurate. IMO, it should be both accurate and describe common scenarios/uses. [[User:Stevebroshar|Stevebroshar]] ([[User talk:Stevebroshar|talk]]) 11:25, 9 January 2025 (UTC)
:I edited the article relatively heavily to address these issues. [[User:Stevebroshar|Stevebroshar]] ([[User talk:Stevebroshar|talk]]) 12:29, 11 January 2025 (UTC)
|