On Monday, 12 December 2022 at 17:29:00 UTC, Steven Schveighoffer wrote: > Removing keys while iterating is not supported. It will break, > in confusing ways, and possibly include a null pointer > dereference. IRC, the specs says that it's an error to modify a foreach aggregate but the compiler curretly doesn't diagnose it.