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

Update 2018 for module changes #1535

Merged
merged 6 commits into from Oct 8, 2018
Merged

Update 2018 for module changes #1535

merged 6 commits into from Oct 8, 2018

Conversation

steveklabnik
Copy link
Member

Fixes #1280

Fixes #1509

r? @carols10cents

I feel like this is a bit rough.

and absolute paths. This way, when you move code around, the imports it needs
don't change. Up to you!

A breif note about idioms:

Choose a reason for hiding this comment

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

brief*

use std::collections::*;
```

Be careful with this! This makes it a little harder to tell what names are in

Choose a reason for hiding this comment

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

Might be worth mentioning the "prelude" pattern here, since this is a common way to make glob imports useful.

Copy link
Member Author

Choose a reason for hiding this comment

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

great call

- [`mod` and the Filesystem](ch07-01-mod-and-the-filesystem.md)
- [Controlling Visibility with `pub`](ch07-02-controlling-visibility-with-pub.md)
- [Referring to Names in Different Modules](ch07-03-importing-names-with-use.md)
- [Pacakges, Crates, and Modules](ch07-00-packages-crates-and-modules.md)

Choose a reason for hiding this comment

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

Packages?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup! Did you read the text?

Choose a reason for hiding this comment

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

I haven't read all of the text but found one more instance of the misspelling.

:%s/Pacakges/Packages/g

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I just misunderstood you. Thanks so much!

@steveklabnik
Copy link
Member Author

steveklabnik commented Sep 20, 2018 via email

@steveklabnik steveklabnik merged commit 96087ab into master Oct 8, 2018
@steveklabnik steveklabnik deleted the update-for-modules branch October 8, 2018 19:12
@steveklabnik
Copy link
Member Author

I'm going to merge this in for now; I'd like to do significant more work on it, but let's at least get the basics in. Carol, we'll review this more later :)

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.

None yet

3 participants