Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider proplist a list of key-value pairs #106

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

williamthome
Copy link
Owner

Description

The actual logic considers an atom of the list as a key-value pair of {atom(), true}. This Is valid in Erlang but is potentially buggy because a list of atoms will be considered a proplist. The proplist that contains atoms can be normalized via lists:unfold/1 before the encoding.

A brief description of your changes.

Closes #<issue>.

The actual logic considers an atom of the list as a key-value pair of
`{atom(), true}`. This Is valid in Erlang but is potentially buggy
because a list of atoms will be considered a proplist. The proplist that
contains atoms can be normalized via `lists:unfold/1` before the
encoding.
@williamthome williamthome merged commit fc02384 into main Sep 7, 2024
6 checks passed
@williamthome williamthome deleted the fix/atom-list-as-list branch September 7, 2024 01:10
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