SIP-19 - Implicit Source Locations - Scala Documentation

Philipp Haller

30 March 2012

The Scala compiler’s error messages would be nearly useless if they wouldn’t provide the corresponding source location, that is, file name, line number, and (some representation of the) character offset, of each error. However, source locations are also very useful outside of the compiler. Libraries and frameworks routinely deal with application- or system-level errors (usually in the form of exceptions), logging, debugging support through tracing, etc. All of these aspects greatly benefit from source location information.


This is a companion discussion topic for the original entry at http://docs.scala-lang.org//sips/rejected/source-locations.html.html