Line Numbers and Syntax Errors
If a programmer introduces a syntax error into a program, the compiler (or interpreter) will inform the programmer that the attempt to compile (or execute) failed at the given line number. This simplifies the job of finding the error immensely for the programmer.
The use of line numbers to describe the location of errors remains standard in modern programming tools, even though line numbers are never required to be manually specified. It is a simple matter for a program to count the newlines in a source file and display an automatically generated line number as the location of the error. In IDEs such as Microsoft Visual Studio or Xcode, in which the compiler is usually integrated with the text editor, the programmer can even double-click on an error and be taken directly to the line containing that error.
Read more about this topic: Line Number
Famous quotes containing the words line, numbers and/or errors:
“For as the interposition of a rivulet, however small, will occasion the line of the phalanx to fluctuate, so any trifling disagreement will be the cause of seditions; but they will not so soon flow from anything else as from the disagreement between virtue and vice, and next to that between poverty and riches.”
—Aristotle (384322 B.C.)
“Publishers are notoriously slothful about numbers, unless theyre attached to dollar signsunlike journalists, quarterbacks, and felony criminal defendents who tend to be keenly aware of numbers at all times.”
—Hunter S. Thompson (b. 1939)
“My errors are by now natural and incorrigible; but the good that worthy men do the public by making themselves imitable, I shall perhaps do by making myself evitable.”
—Michel de Montaigne (15331592)