LibreTechni.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
monica_b1998@lemmy.world to Rust@programming.dev · 3 days ago

Error Handling in Rust vs. Exceptions in other languages

slicker.me

external-link
message-square
20
fedilink
34
external-link

Error Handling in Rust vs. Exceptions in other languages

slicker.me

monica_b1998@lemmy.world to Rust@programming.dev · 3 days ago
message-square
20
fedilink
Error Handling in Rust vs. Exceptions in Other Languages
slicker.me
external-link
  • treadful@lemmy.zip
    cake
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    That only works if everything has the same error types.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      Or just implement Into for your error type. ? Works for Into

      • jenesaisquoi@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        Don’t implement Into, instead, implement From - and you’ll get Into for free

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
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: !rust@programming.dev

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

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

  • 8 users / day
  • 113 users / week
  • 280 users / month
  • 300 users / 6 months
  • 1 local subscriber
  • 8.06K subscribers
  • 167 Posts
  • 50 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org