RSSAmplifier

Valentin Radu · Dev log · Mar 10, 2020

Rust for Swift devs: Error handling

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Rust for Swift devs: The type system, Part 2. Swift's throws and Rust's Result<T, E> are two presentations of the same idea. The second post in the Rust-for-Swift-devs series translates throws, try, and do/catch into the Result type, the ? operator, and the From/Into conversion machinery, then covers thiserror, anyhow, and when to panic.

Read on radval.me

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.