I’d be all for this. FWIW there’s also the FOR_IN/END_FOR_IN macros in 
GSFastEnumeration.h, which use fast enumeration with Clang and seem to emulate 
it with other compilers.


> Am 31.01.2022 um 10:40 schrieb Richard Frith-Macdonald <r...@gnu.org>:
> 
> A few years ago we declared gcc-4.0 as our minimum supported compiler version.
> Does anyone know if gcc-4.0 support for fast enumeration actually works?
> If it does, it would be good to start using fast enumeration internally (in 
> gnustep-base for instance).
> I'd like to do that as it gives us not only more readable/maintainable code, 
> but also faster code in almost all cases.
> 
> 
> 
> 


Reply via email to