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

print_debug example uses the <> structure syntax before it has been introduced #1871

Open
systemdlete opened this issue Aug 8, 2024 · 1 comment

Comments

@systemdlete
Copy link

The print_debug example does, in fact, have a link at the bottom to the structure example page. But so far, the "<>" part of the structure syntax has not yet been introduced, and the print_debug page does not explain its meaning.

Interestingly, the linked page does not use or refer to this syntax, either.

The syntax may feel familiar to C++ and other developers who have encountered templates. But being new to this, I am not sure if this syntax exactly mimics the semantics in those other languages, and I am not sure we can assume all rust learners have even used another programming language with similar syntax.

The struct example page should almost certainly introduce the <> syntax and provide instances of its use.

@marioidival
Copy link
Member

I understand your point, but I think that RBE should be used as an auxiliary material for studies, that is, it is expected (in my opinion) that before studying using RBE, the learner has at least started the rust book.

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

No branches or pull requests

2 participants