On 10/27/2025 2:46 PM, John Hubbard wrote: > On 10/26/25 9:44 AM, Miguel Ojeda wrote: >> On Sun, Oct 26, 2025 at 3:40 PM Alexandre Courbot <[email protected]> >> wrote: > ... > >> Regarding the `.into_as()` name, it makes sense, but it can be a bit >> surprising when reading out of context... The standalone functions are >> super clear, in comparison. But I am not sure what could be better. >> `into_in_this_arch()` or similar could emphasize that this will only >> work in certain architectures, i.e. it is "an `into()` for this arch" >> rather than the general one. >> That would go well with the idea that you didn't implement it for >> other obvious types, which I guess was to avoid developers using this >> instead of `into()` by mistake, right? >> > > Exactly: the into-as, from-as naming suffers from *appearing* to be > familiar and readable, but actually, the naming gives no hint as to > what it is really doing--nor how it is subtly different from the > basic from/as/into standard conversions. > > Instead, we need to add something (almost anything) to the name, to > make it clearly different from the from/as/into. > > into_for_arch() goes in that direction, for example. 100% agree with John. Thanks, - Joel
- [PATCH 2/7] gpu: nova-core: vbios: remove unneeded u8 co... Alexandre Courbot
- [PATCH 4/7] gpu: nova-core: use `try_from` instead of `a... Alexandre Courbot
- [PATCH 3/7] gpu: nova-core: vbios: add conversion to u8 ... Alexandre Courbot
- [PATCH 6/7] gpu: nova-core: replace use of `as` with fun... Alexandre Courbot
- [PATCH 5/7] gpu: nova-core: add extra conversion functio... Alexandre Courbot
- Re: [PATCH 5/7] gpu: nova-core: add extra conversio... Danilo Krummrich
- Re: [PATCH 5/7] gpu: nova-core: add extra conve... Alexandre Courbot
- Re: [PATCH 5/7] gpu: nova-core: add extra conversio... Miguel Ojeda
- Re: [PATCH 5/7] gpu: nova-core: add extra conve... Alexandre Courbot
- Re: [PATCH 5/7] gpu: nova-core: add extra conve... John Hubbard
- Re: [PATCH 5/7] gpu: nova-core: add extra c... Joel Fernandes
- Re: [PATCH 5/7] gpu: nova-core: add extra c... Alexandre Courbot
- Re: [PATCH 5/7] gpu: nova-core: add ext... Miguel Ojeda
- Re: [PATCH 5/7] gpu: nova-core: add ext... John Hubbard
- Re: [PATCH 5/7] gpu: nova-core: ad... Alexandre Courbot
- Re: [PATCH 5/7] gpu: nova-core... John Hubbard
- [PATCH 7/7] gpu: nova-core: justify remaining uses of `a... Alexandre Courbot
- Re: [PATCH 7/7] gpu: nova-core: justify remaining u... Miguel Ojeda
- Re: [PATCH 7/7] gpu: nova-core: justify remaini... Alexandre Courbot
- Re: [PATCH 7/7] gpu: nova-core: justify rem... Miguel Ojeda
- Re: [PATCH 0/7] gpu: nova-core: remove use of `as` for i... Danilo Krummrich
