Conversation
Slides are here: nikomatsakis.github.io/pliss-2019/res
1
1
Nice, actionable feedback to prepare for this model is to rewrite your passes like this:
- fn run_pass(input: Input) -> Result<Output, Diagnostic>
+ fn run_pass(input: Input) -> (Output, Vec<Diagnostic>)
Where `Input` and `Output` are enums with `Error` variants inside.
The on demand system might be reason to finally not like having a callback for diagnostics that can continue, abort, apply a fix-it, etc.


