Skip to content

The unit value is not a literal, it is a tuple expression #124

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

Merged
merged 1 commit into from
Oct 2, 2017

Conversation

brauliobz
Copy link
Contributor

@brauliobz brauliobz commented Sep 29, 2017

As can be seen on the AST.

@Havvy Havvy merged commit b5aeaa2 into rust-lang:master Oct 2, 2017
@Havvy
Copy link
Contributor

Havvy commented Oct 2, 2017

💟 Thanks.

I was a bit hesitant to merge this because I wasn't sure whether or not unit is considered a literal for Rust the language – while it's easy to encode as a tuple in the compiler, it doesn't have to be a tuple in the language. But there's other wording in the reference that says it is a tuple, so this makes it consistent.

@brauliobz brauliobz deleted the unit_is_not_literal branch October 2, 2017 11:32
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.

2 participants