http://compresscafe.i2p/blog/applying_the_diagnostics_pattern_in_practice.html
Here's an example of a Diagnostics from std.json: /// To enable diagnostics, declare `var diagnostics = Diagnostics{};` then call `source.enableDiagnostics(&diagnostics);` /// where `source` is either a `std.json.Reader` or a `std.json.Scanner` that has just been initialized. /// At any time, notably just after an error, call `getLine()`, `getColumn()`, and/or `getByteOffset()` /// to get meaningful information from this. pub const Diagnostics = struct { line_number : u64 = 1,...