Skip to content

Remove ty_nil and replace with zero-length tuple #18614

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

Closed
nikomatsakis opened this issue Nov 4, 2014 · 3 comments · Fixed by #18752
Closed

Remove ty_nil and replace with zero-length tuple #18614

nikomatsakis opened this issue Nov 4, 2014 · 3 comments · Fixed by #18752
Labels
A-type-system Area: Type system C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

Comments

@nikomatsakis
Copy link
Contributor

Distinguishing zero-arity tuples as nil causes annoying discontinuities in the compiler. We should remove ty_nil and just use ty_tup with a zero-length list of types. I tried to do this, though, and encountered errors in the exhaustiveness checker that I did not understand.

@nikomatsakis nikomatsakis added A-an-interesting-project A-type-system Area: Type system E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion. C-cleanup Category: PRs that clean code up or issues documenting cleanup. labels Nov 4, 2014
@nikomatsakis
Copy link
Contributor Author

I'm happy to mentor this project.

@ghost
Copy link

ghost commented Nov 4, 2014

Given that you encountered roadblocks in match exhaustiveness, I can take a look.

@nikomatsakis
Copy link
Contributor Author

On Tue, Nov 04, 2014 at 12:38:06PM -0800, Jakub wrote:

Given that you encountered roadblocks in match exhaustiveness, I can take a look.

Thanks. I meant to ping you about that.

@ghost ghost self-assigned this Nov 4, 2014
@ghost ghost mentioned this issue Nov 7, 2014
bors added a commit that referenced this issue Nov 11, 2014
bors added a commit that referenced this issue Nov 15, 2014
bors added a commit that referenced this issue Nov 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant