I would think the map iteration order is arbitrary but deterministic. That is, the same set of keys will be iterated the same way every time. This is not the case with the select statement.
> On Jan 16, 2023, at 1:34 AM, 'Axel Wagner' via golang-nuts > <golang-nuts@googlegroups.com> wrote: > > I think the question of "when is a Go program deterministic" makes full > sense, FWIW. Because being deterministic is a desirable property of many > programs (compilers being one obvious example). So considering this question > gives you insight into how to write such programs. For example, realizing > that map iteration order is not defined to be deterministic leads you to sort > keys of a map before output, if you want deterministic output. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/95F0F462-C4C5-4B59-9FC8-71EB6217862B%40iitbombay.org.