Skip to main content

rust-panic-vs-result

Language-level Rust error-handling philosophy (Ch 9). Covers panic! vs Result<T,E> vs Option, the ? operator, From-based error conversion, unwrap/expect discipline, Result in main, and the \"bad state vs expected failure\" decision rule from the Book. Keywords: panic, unwrap, expect, Result, Option, ? operator, error propagation, unreachable, todo, unimplemented, recoverable, unrecoverable, From conversion, propagate, panic!, panic macro, unwrap_or, unwrap_or_else, ok_or, ok_or_else, map_err, Box<dyn Error>, exit code. Auto-triggers on ANY `.unwrap()`/`.expect()` outside tests, any `panic!`/`unreachable!`/`todo!`/`unimplemented!` in non-test code, any fn returning Result, any `?` usage, any error-conversion question. For framework wiring (AppError, thiserror, IntoResponse, ServerFnError) see [[rust-error-handling]]. Use when this capability is needed.

Jump to install

Source facts

Repository
tomevault-io/skills-registry
Last source activity
July 3, 2026 at 19:45
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.