Uh oh!
There was an error while loading. Please reload this page.
Clarify unit expressions section of reference - #24738
Conversation
rust-highfive
commented
Apr 23, 2015
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
bluss
commented
Apr 23, 2015
You should update it to say that |
joliv
commented
Apr 23, 2015
Huh, guess I'm pretty behind that development! Going to need to update more than just that section by the looks of it if that's the case, but I'll start with just 7.2.4. Can I just append another commit, or should I squash the old one? New to the rust-lang repo. |
joliv
commented
Apr 23, 2015
Actually, it looks like a little more than some editing to that section will be needing. Maybe even removing that section altogether? I probably ought to rescind this PR. |
steveklabnik
commented
Apr 23, 2015
Yeah, this was removed. You can add a new commit, but before merging, we'll want to squash it down. |
pnkfelix
commented
Apr 25, 2015
Wait, have we officially stopped referring to While it is perhaps interesting to look at it as a trivial empty tuple, I am not sure if there is all that much pedagogical value there. . . the phrase "unit type" has a lot of meaning in terms of the conventions about where such types are used (which match up well with how they are used in Rust...) |
steveklabnik
commented
Apr 25, 2015
I'm not sure, to be honest. But it's not at type anymore. |
bluss
commented
Apr 26, 2015
I agree with you pnkfelix. () is still a type, but it's classified among the tuple types. And to keep the nickname unit type seems useful. It ought to have a good name since it's the default expression and function return value. |
bors
commented
May 12, 2015
☔ The latest upstream changes (presumably #25320) made this pull request unmergeable. Please resolve the merge conflicts. |
steveklabnik
commented
Jun 15, 2015
joliv
commented
Jun 15, 2015
Yeah, I can do it based off graue's comments on #25244. As for that close, github closes the pull request if the branch has no differing commits for a moment, as it did when I deleted my old commit via a force push. Hopefully it will reopen when the new commits are pushed. |
joliv
commented
Jun 15, 2015
Okay, there we go! |
There was a problem hiding this comment.
Can you
- use single instead of double curlies
- put the period outside of the single curlie
- use actual curlie quotes rather than
'(there are some in this file if you want to copy/paste them.
steveklabnik
commented
Jun 15, 2015
Awesome, thanks! Just a few nits about the curlies, and also, can you put 'Fixes #25244' in the commit text, so when this gets merged, it closes the associated issue. Thanks! |
joliv
commented
Jun 16, 2015
Yeah, I forgot to match the style of the rest of the ref—had my Strunk & White blinders on, I guess. It should be up to snuff now! |
steveklabnik
commented
Jun 16, 2015
It's all good! Thanks :) |
steveklabnik
commented
Jun 16, 2015
@bors: r+ rollup |
bors
commented
Jun 16, 2015
📌 Commit b87056f has been approved by |
bors
commented
Jun 16, 2015
⌛ Testing commit b87056f with merge c4d064f... |
bors
commented
Jun 16, 2015
💔 Test failed - auto-mac-64-nopt-t |
alexcrichton
commented
Jun 16, 2015
@bors: retry On Tue, Jun 16, 2015 at 8:18 AM, bors notifications@github.com wrote:
|
bors
commented
Jun 16, 2015
The "unit value" is a value of the "unit type," not the "unit value type." Regardless of correctness, this straight syntax is easier to grok. Part of #16676 Sorry if something's off here, it's my first pull request to rust!
The "unit value" is a value of the "unit type," not the "unit value type." Regardless of correctness, this straight syntax is easier to grok.
Part of #16676
Sorry if something's off here, it's my first pull request to rust!