On Tue, Nov 21, 2017 at 7:51 PM DV <dimiter.velich...@gmail.com> wrote:
> I think that's a horrible idea in any language, honestly. You shouldn't be mutating the thing you're enumerating. Go specs, for example, take care to guarantee it's safe in at least some, if not all cases. Pruning eg. a map would otherwise incur a full copy penalty. So no, it's not a horrible idea in any language. -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.