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.

설치로 이동

소스 정보

저장소
tomevault-io/skills-registry
최근 소스 활동
2026년 7월 3일 19:45
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.