Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotBM to Lobste.rsEnglish · 30 days ago

The Missing Piece in Rust Error Handling

mcmah309.github.io

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • rust@programming.dev
1
external-link

The Missing Piece in Rust Error Handling

mcmah309.github.io

RSS BotBM to Lobste.rsEnglish · 30 days ago
message-square
0
link
fedilink
  • cross-posted to:
  • rust@programming.dev
Rust already has most of what I want from error handling: explicit control flow, errors as values, and concise propagation with ?. The friction comes when deciding what to put in the error half of Result. We often end up choosing between precise types that require boilerplate and convenient types that hide which errors can occur. But precision and convenience do not have to be competing goals. Error types should compose as easily as the functions that return them.

Comments

alert-triangle
You must log in or register to comment.

Lobste.rs

lobsters

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lobsters@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

RSS Feed of lobste.rs

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 24 users / day
  • 163 users / week
  • 422 users / month
  • 1.49K users / 6 months
  • 2 local subscribers
  • 415 subscribers
  • 17K Posts
  • 1.23K Comments
  • Modlog
  • mods:
  • patrick
  • RSS BotB
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org