7. Reading Errors
TL;DR (5 lines)
- Read the core idea first.
- Understand one concept at a time.
- Run small examples.
- Fix errors early.
- Move to next chapter only when clear.
Frequent mistakes
- Skipping prerequisites.
- Reading without trying examples.
- Fixing too many errors at once.
Prerequisites: book/poche/06-modules.html. See also: book/chapters/10-diagnostics.html.
Goal
Fix an error in 3 simple steps.
Example
Typical error: unknown symbol.
Why it matters
Knowing how to read errors avoids wasting time blindly.
Quick check
What is the first error to correct when there are 5?
Try this
- Read the first error only.
- Correct locally.
- Recompile.
If you're stuck
Never correct 5 errors at once: one by one.
Mini quiz
- What is the main goal of this chapter?
- Which concept is most important?
- What will you try right now?
See also
Next best action
Apply one idea from this chapter in a tiny example, then continue.