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

Fix maybe_improper_list to _not_ allow proper lists #123

Open
Qqwy opened this issue May 31, 2022 · 0 comments
Open

Fix maybe_improper_list to _not_ allow proper lists #123

Qqwy opened this issue May 31, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Qqwy
Copy link
Owner

Qqwy commented May 31, 2022

maybe_improper_list(element_type(), terminator_type()) does not in actuality mean 'an improper or proper list' but instead means: a 'list' with elements element_type() and terminator terminator_type().
This list will thus not maybe be improper, but always be improper.
Only when [] is passed explicitly as (one of the possible) terminator_type() (s), will the result 'by accident' be a 'proper' list.

c.f. erlang/otp#6038 and elixir-lang/elixir#11886

@Qqwy Qqwy added the bug Something isn't working label May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant