Re: [PATCH v2 7/8] minmax: Use __auto_type

From: Linus Torvalds
Date: Sun Jul 28 2024 - 12:59:39 EST


On Sun, 28 Jul 2024 at 07:24, David Laight <David.Laight@xxxxxxxxxx> wrote:
>
> Replacing 'typeof(x) _x = (x)' with '__auto_type _x = (x)' removes
> one expansion of 'x'.

Ack. We should do this more widely, but the whole "typeof()" predates
__auto_type by many years, and we (and by that I mean "I" - the royal
we) have just years of historical mental baggage.

Linus