← All courses
⚠️Intermediate

Errors & Control Flow

Go's most argued-about decision, examined properly: errors as ordinary values, the sentinel-and-wrapping vocabulary for inspecting them, what panic and recover are actually for and why they are not exceptions, defer's exact ordering and the traps in its argument evaluation, and how to design the error surface of an API somebody else has to use.

Volume 17 · Part III · 5 chapters · 5 lessons
Share

What you'll learn

  • Errors Are Values
  • Sentinels, Wrapping & Inspection
  • panic and recover
  • defer: Order and Traps
  • Designing an Error Surface

Curriculum

3 modules · 5 lessons
Module 1Errors as Values2 lessons
Errors Are ValuesPreview
Sentinels, Wrapping & Inspection
Module 2The Other Mechanism2 lessons
panic and recover
defer: Order & Traps
Module 3What Callers See1 lessons
Designing an Error Surface

Reviews

No reviews yet.

More courses

Browse all →