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

Book - short explanation of arity #22368

Merged
merged 1 commit into from
Feb 17, 2015
Merged

Book - short explanation of arity #22368

merged 1 commit into from
Feb 17, 2015

Conversation

thiagooak
Copy link
Contributor

@rust-highfive
Copy link
Collaborator

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.

@steveklabnik
Copy link
Member

I have additional plans here, but in the meantime, this is fine. Thank you!

@steveklabnik
Copy link
Member

@bors: r+ 89822el rollup

@bors
Copy link
Contributor

bors commented Feb 15, 2015

🙀 You have the wrong number! Please try again with 89822e1.

@steveklabnik
Copy link
Member

@bors: r+ 89822e1 rollup

@thiagooak
Copy link
Contributor Author

@steveklabnik if you can share what you plan, or a issue number I may be able to contribute :)

@steveklabnik
Copy link
Member

I want to make a "glossary" chapter that this and some other things (like 'parametric polymorphism') can just link to

@thiagooak
Copy link
Contributor Author

I like the idea, will try it out

@@ -47,7 +47,8 @@ This pattern is very powerful, and we'll see it repeated more later.

There are also a few things you can do with a tuple as a whole, without
destructuring. You can assign one tuple into another, if they have the same
arity and contained types.
contained types and arity. Tuples have the same arity when they have the same
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why introduce the concept of "arity" here at all? "length" should be good enough, and I've never seen the word "arity" being used in this context in discussions about Rust.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On #21568 there is a big discussion on this topic.

As for this commit, I think it is kind of a middle ground. And a concrete improvement.

But I guess length would also work

@mdinger
Copy link
Contributor

mdinger commented Feb 16, 2015

@steveklabnik What made you change your mind? In rust-lang/rust-by-example#97 you decided we don't need glossaries. They're too difficult. Now you want one?

@steveklabnik
Copy link
Member

steveklabnik commented Feb 16, 2015 via email

@mdinger
Copy link
Contributor

mdinger commented Feb 16, 2015

I think it's a good idea. Definitely try it before rejecting it. Can be more direct and pertinent to Rust than a wikipedia article could be.

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 17, 2015
@bors bors merged commit 89822e1 into rust-lang:master Feb 17, 2015
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.

6 participants