_aaApply2

Quirin Schroll qs.il.paperinik at gmail.com
Mon Jul 22 11:11:53 UTC 2024


On Sunday, 21 July 2024 at 16:44:56 UTC, IchorDev wrote:
> Shouldn't AAs be using a range interface instead of opApply 
> these days? Is really there any reason for a `foreach` over an 
> AA not to be `nothrow`?

The range interface doesn’t really support key–value pair 
iteration. An AA can be iterated by values or keys and values. A 
range interface can’t do that. The issue is that iteration isn’t 
`nothrow`, but I don’t know why. It makes no sense.


More information about the Digitalmars-d mailing list