{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreigi64fieipira2hg3vmj5ekxjrjw6kttl5plpane4i4hpwombxbja",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mqfimiatzai2"
},
"path": "/t/there-should-be-a-primitive-int-float-trait-in-core-stdlib/24464#post_9",
"publishedAt": "2026-07-11T19:39:55.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Yeah, I agree coherence-aware sealing would be interesting -- though complex since the local impls might themselves be dependent on external traits -- for lots of things.\n\nBut even if we had that, I still like `impl<N> MyTrait for u<N>` better. If nothing else because it doesn't also need mutually-exclusive traits to be able to also `impl<N> MyTrait for i<N>`.",
"title": "There should be a primitive int / float trait in core / stdlib"
}