Talk:Ada (programming language): Difference between revisions

Content deleted Content added
m extend project
No edit summary
Line 311:
http://www.seas.gwu.edu/~mfeldman/ada-project-summary.html
[[Special:Contributions/75.68.157.156|75.68.157.156]] ([[User talk:75.68.157.156|talk]]) 10:21, 1 April 2008 (UTC)
 
==Comments==
 
The current text of the comments section is a bit strange. See commentary below:
:Ada was designed to use the English language standard for comments:
::What "English language standard for comments"? What does this refer to?
:the em-dash, as a double-dash ("--")
::Ada does not allow non-ASCII characters such as the [[em-dash]] (—) in programs; two hyphens in a row is the typewriter convention for writing dashes, that is all.
:to denote comment text.
::"--" does not 'denote' comment text, it ''begins'' it.
:Comments stop at end of line,
::This is all a very wordy way of saying that Ada has conventional line-end comments introduced by "--".
:so there is no danger of unclosed comments accidentally eating whole sections of source code.
::This is true of all line-end comments.
:Comments can be nested: prefixing each line (or column) with "--" will skip all that code, while being clearly denoted as a column of repeated "--" down the page.
::This is not the conventional sense of "nesting comments"; anyway, this convention words for any language using line-end comments.
:There is no limit to the nesting of comments, thereby allowing prior code, with commented-out sections, to be commented-out as even larger sections.
::This is a pretty vacuous statement, since it works with any line-end comments
:All characters are allowed in comments, such as for symbolic formulas (E[0]=m*c^2).
::Again, pretty vacuous.
:To the compiler, the double-dash is treated as end-of-line,
::No need to bring the compiler into the language definition.
:allowing continued parsing of the language as a [[context-free grammar]].
::Yet another completely vacuous statement.
Lots of verbiage, no more content than saying "Ada has conventional end-of-line comments introduced by '--'". --[[User:Macrakis|macrakis]] ([[User talk:Macrakis|talk]]) 03:29, 5 November 2008 (UTC)