Tag

unwrap

1 views collected around this technical thread.

Architecture Development Notes
Architecture Development Notes
Oct 29, 2024 · Fundamentals

Rust Error Handling Guide: unwrap, unwrap_or_else, ?, expect, and match

This article compares Rust’s primary error‑handling techniques—unwrap, unwrap_or_else, the ? operator, expect, and pattern matching—explaining their safety trade‑offs, appropriate use cases, and providing concise code examples to help developers choose the right approach for robust Rust applications.

ProgrammingRusterror handling
0 likes · 4 min read
Rust Error Handling Guide: unwrap, unwrap_or_else, ?, expect, and match
System Architect Go
System Architect Go
Oct 18, 2019 · Backend Development

Error Handling in Go Before and After Go 1.13

This article explains Go's built‑in error interface, the traditional ways of creating and checking errors before Go 1.13, and the new errors.Unwrap, errors.Is, errors.As functions plus the %w verb in fmt.Errorf introduced in Go 1.13 for error wrapping and inspection.

Goaserror handling
0 likes · 5 min read
Error Handling in Go Before and After Go 1.13