Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

panic

When a program stops because something went wrong it can't recover from.

A panic stops the current thread with an error message; an unhandled panic in main ends the program with exit status 101.

Loading interactive…

Examples

  • scores[slot] with slot equal to 3 on a three-item array panics: index out of bounds: the len is 3 but the index is 3, and the program exits with status 101.

Read the full section →