I still don't know the "proper" way of handling errors in Rust but at least I managed to treat Result<T, E>s better instead of just exit()ing everywhere.


If you've got an infinite loop that might error, you can use Result<!, E> or something.

Rust permits art.

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.