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

Nomicon and Reference duplicated effort #230

Closed
OnlyLys opened this issue Jul 17, 2020 · 3 comments
Closed

Nomicon and Reference duplicated effort #230

OnlyLys opened this issue Jul 17, 2020 · 3 comments
Labels

Comments

@OnlyLys
Copy link

OnlyLys commented Jul 17, 2020

Hi, I noticed that a few sections within the nomicon overlap with that of the reference.

For instance, coercions:

and the method call operator:

https://doc.rust-lang.org/reference/expressions/method-call-expr.html?#method-call-expressions
https://doc.rust-lang.org/nomicon/dot-operator.html

Are these sections still necessary in the nomicon?

@cuviper
Copy link
Member

cuviper commented Aug 12, 2020

Another one is "Subtyping and Variance", which was added to the reference in rust-lang/reference#186.

The reference chapter is shorter, but it also mentions the variance of Trait<T> + 'a, which is missing from the nomicon.

@JohnTitor
Copy link
Member

Discussed on Zulip a bit, @ehuss pointed out:

I would probably defer the list of rules (like the coercions and casts) to the reference, and keep the nomicon focused on the discussion of how to use those effectively and what the implications can be.

In theory that information could be duplicated, but given our limited resources, I think it is very easy for them to go out of sync.

Focusing on the good usage makes sense to me. The problem is that the coercions and method call operator chapter don't show any good usage currently, we should improve them anyway.

@JohnTitor
Copy link
Member

I'm going to close this issue in favor of #279 (and some of them have been resolved). Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants