26
submitted 2 weeks ago by u_1f914@lemmy.world to c/rust@programming.dev
top 3 comments
sorted by: hot top new old
[-] nialv7@lemmy.world 4 points 2 weeks ago

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

[-] KillTheMule@programming.dev 3 points 2 weeks ago

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

[-] BB_C@programming.dev 2 points 2 weeks ago

Yes and no.

And you clearly missed the enums part.

this post was submitted on 10 Aug 2026
26 points (100.0% liked)

Rust

8248 readers
10 users here now

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)

founded 3 years ago
MODERATORS