Re: [PATCH 1/2] rust: add BitInt integer wrapping type
From: Miguel Ojeda
Date: Mon Nov 03 2025 - 09:10:58 EST
On Mon, Nov 3, 2025 at 3:17 AM Yury Norov <yury.norov@xxxxxxxxx> wrote:
>
> Rust _must_ do the same thing to at least be arithmetically
> compatible to the big brother.
No, Rust doesn't need to do anything of the sort, sorry.
The point here is not to copy what C does, but to improve on it.
In particular, we definitely do not want to have anything like integer
promotions and arithmetic conversions from C.
Cheers,
Miguel