this post was submitted on 17 May 2025
28 points (91.2% liked)

Rust

6940 readers
22 users here now

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

Wormhole

[email protected]

Credits

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

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 3 days ago (1 children)

The orphan rule is not stupid, it is necessary.

[โ€“] sugar_in_your_tea 1 points 3 days ago

My understanding is that it's necessary given the current design of the compiler. That doesn't mean it can't be removed at some point.

It would be really nice to be able to define trait impls wherever, and it should be possible.