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:
“There is a line between a definite maybe and an indefinite yes.”
—Mason Cooley (b. 1927)
“I had but three chairs in my house; one for solitude, two for friendship; three for society. When visitors came in larger and unexpected numbers there was but the third chair for them all, but they generally economized the room by standing up.”
—Henry David Thoreau (18171862)
“Their errors have been weighed and found to have been dust in the balance; if their sins were as scarlet, they are now white as snow: they have been washed in the blood of the mediator and the redeemer, Time.”
—Percy Bysshe Shelley (17921822)