Content Warning

This site contains NSFW content. By continuing, you confirm that you are comfortable viewing such content.

LemmyChan
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
U+1F914 🤔@lemmy.world to Rust@programming.devEnglish · 17 days ago

Call for testing: Restricting trait implementability and field mutability | Inside Rust Blog

blog.rust-lang.org

external-link
message-square
3
link
fedilink
  • cross-posted to:
  • lobsters@lemmy.bestiver.se
26
external-link

Call for testing: Restricting trait implementability and field mutability | Inside Rust Blog

blog.rust-lang.org

U+1F914 🤔@lemmy.world to Rust@programming.devEnglish · 17 days ago
message-square
3
link
fedilink
  • cross-posted to:
  • lobsters@lemmy.bestiver.se
Want to follow along with Rust development? Curious how you might get involved? Take a look!
  • nialv7@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    17 days ago

    So basically language support for sealed traits and reducing need for getter functions. Kinda neat but not that significant.

    • BB_C@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      16 days ago

      Yes and no.

      And you clearly missed the enums part.

    • KillTheMule@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      15 days ago

      As mentioned in the article, it enables scenarios that getters/setters can’t because of the borrow checker.

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.

  • 9 users / day
  • 196 users / week
  • 396 users / month
  • 1.07K users / 6 months
  • 8 local subscribers
  • 8.25K subscribers
  • 244 Posts
  • 504 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org