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:
“Anybody whos been through a divorce will tell you that at one point ... theyve thought murder. The line between thinking murder and doing murder isnt that major.”
—Oliver Stone (b. 1946)
“The principle of majority rule is the mildest form in which the force of numbers can be exercised. It is a pacific substitute for civil war in which the opposing armies are counted and the victory is awarded to the larger before any blood is shed. Except in the sacred tests of democracy and in the incantations of the orators, we hardly take the trouble to pretend that the rule of the majority is not at bottom a rule of force.”
—Walter Lippmann (18891974)
“When people put their ballots in the boxes, they are, by that act, inoculated against the feeling that the government is not theirs. They then accept, in some measure, that its errors are their errors, its aberrations their aberrations, that any revolt will be against them. Its a remarkably shrewed and rather conservative arrangement when one thinks of it.”
—John Kenneth Galbraith (b. 1908)