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

Replace EmptyList with list of bottom type #282

Open
4 tasks
MeAmAnUsername opened this issue Apr 7, 2022 · 0 comments
Open
4 tasks

Replace EmptyList with list of bottom type #282

MeAmAnUsername opened this issue Apr 7, 2022 · 0 comments
Labels
Component: code base The code quality of the project (does not affect functionality) Priority: low Status: blocked Status: specified Enhancement that is ready to implement Type: enhancement New feature or request

Comments

@MeAmAnUsername
Copy link
Owner

Summary
Replace the type EmptyListType() with ListType(BottomType()). Depends on #170.

Todo

Reason
It is inelegant to have an edge case for empty lists. This is currently required because lists are not subtypes of each other, but that would be resolved by #170

Implementation
Once subtyping for lists is allowed, replacing EmptyListType() with ListType(BottomType()) should just work. Explicit checks for empty lists to generate warnings should still work after this replacement.

Related issues

@MeAmAnUsername MeAmAnUsername added Type: enhancement New feature or request Status: specified Enhancement that is ready to implement Component: code base The code quality of the project (does not affect functionality) Priority: low Status: blocked labels Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: code base The code quality of the project (does not affect functionality) Priority: low Status: blocked Status: specified Enhancement that is ready to implement Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant