Re: [PATCH v7 05/10] rust: io: add IoLoc and IoWrite types

From: Danilo Krummrich

Date: Wed Mar 04 2026 - 14:54:37 EST


On Wed Mar 4, 2026 at 8:19 PM CET, John Hubbard wrote:
> I also want to register (haha) a strong yet unexplainable concern about
> this. Registers as types is something I've never seen attempted, it feels
> strange and unnecessary, and just worries me.

Do you want to go back to lots of defines, manual masking and shifts rather than
having a single obvious definition of a register that generates a type with
getters and setters? Needless to say that the former is much more error prone
and less readable. :)