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: "Prelude" explanation could be more prominent/thorough #27917

Closed
niconii opened this issue Aug 20, 2015 · 4 comments
Closed

Book: "Prelude" explanation could be more prominent/thorough #27917

niconii opened this issue Aug 20, 2015 · 4 comments

Comments

@niconii
Copy link
Contributor

niconii commented Aug 20, 2015

"Prelude" doesn't seem to be a very common term outside of Haskell, yet it seems to only be explained in the Guessing Game section of the book. Even then, it only mentions it being the stuff imported by default, which doesn't explain std::io::prelude.

@steveklabnik
Copy link
Member

I'm not sure where this actually belongs, do you have any thoughts?

Even then, it only mentions it being the stuff imported by default, which doesn't explain std::io::prelude.

Can you elaborate on this? It does say the word 'prelude', and links to the module documentation for it, which covers it further.

@niconii
Copy link
Contributor Author

niconii commented Aug 28, 2015

Well, I guess what I'm getting at there is that in contrast to std::prelude, std::io::prelude isn't "a set of things that are imported by default"; rather it's "a set of things that are useful to import all at once". It's a similar meaning, but it's not quite the same thing.

As for where it belongs in the book, I'm not entirely sure either; maybe a short section in the Syntax and Semantics chapter?

@niconii
Copy link
Contributor Author

niconii commented Aug 28, 2015

Also, I guess for some context, this issue arose because of some confusion in IRC.

@steveklabnik
Copy link
Member

Ahhhh I missed the io!

On Aug 28, 2015, at 12:07, Nicolette Verlinden notifications@github.com wrote:

Well, I guess what I'm getting at there is that in contrast to std::prelude, std::io::prelude isn't "a set of things that are imported by default"; rather it's "a set of things that are useful to import all at once". It's a similar meaning, but it's not quite the same thing.

As for where it belongs in the book, I'm not entirely sure either; maybe a short section in the Syntax and Semantics chapter?


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants