nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.48k stars 1.47k forks source link

instantiationInfo undocumented parameter `fullPaths` #17483

Open lhupfeldt opened 3 years ago

lhupfeldt commented 3 years ago
proc instantiationInfo(index = -1; fullPaths = false): tuple[filename: string,
    line: int, column: int] {...}

fullPaths is undocumented

Seems to mean return filenameas an absolute path. full == absolute? why is it plural, can there be other paths returned?

timotheecour commented 3 years ago

@lhupfeldt PR welcome to document it, yes, it means absolute path, the name is historical cruft.

why is it plural, can there be other paths returned?

no, historical cruft