this post was submitted on 17 May 2025
31 points (100.0% liked)

Rust

7142 readers
1 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] 1 points 1 month ago (1 children)

The orphan rule is not stupid, it is necessary.

[โ€“] [email protected] 1 points 1 month 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.