Skip to content

Don't rely on the order of lists returned by maps#363

Merged
mkuratczyk merged 1 commit intomainfrom
otp-26-compatibility
Mar 29, 2023
Merged

Don't rely on the order of lists returned by maps#363
mkuratczyk merged 1 commit intomainfrom
otp-26-compatibility

Conversation

@mkuratczyk
Copy link
Copy Markdown
Contributor

For reference:

OTP-18414    Application(s): erts, stdlib
               Related Id(s): PR-6151

               *** HIGHLIGHT ***

               Some map operations have been optimized by changing the
               internal sort order of atom keys. This changes the
               (undocumented) order of how atom keys in small maps are
               printed and returned by maps:to_list/1 and maps:next/1.
               The new order is unpredictable and may change between
               different invocations of the Erlang VM.

For reference:
```
OTP-18414    Application(s): erts, stdlib
               Related Id(s): PR-6151

               *** HIGHLIGHT ***

               Some map operations have been optimized by changing the
               internal sort order of atom keys. This changes the
               (undocumented) order of how atom keys in small maps are
               printed and returned by maps:to_list/1 and maps:next/1.
               The new order is unpredictable and may change between
               different invocations of the Erlang VM.
```
@mkuratczyk mkuratczyk merged commit 265dec1 into main Mar 29, 2023
@mkuratczyk mkuratczyk deleted the otp-26-compatibility branch March 29, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant