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

TODO Examples #1

Closed
9 of 52 tasks
japaric opened this issue Apr 24, 2014 · 14 comments
Closed
9 of 52 tasks

TODO Examples #1

japaric opened this issue Apr 24, 2014 · 14 comments

Comments

@japaric
Copy link
Member

japaric commented Apr 24, 2014

These are some topics that need examples, but not I'm too familiar with. It would be great if someone more familiar with these topics could send a PR adding examples for these topics.

These are topics that I can cover, and some already appear in the book as unavailable. But I won't get angry if someone wants to give me a hand :-).

joeyespo added a commit to joeyespo/rust-by-example that referenced this issue Apr 27, 2014
japaric pushed a commit that referenced this issue Apr 27, 2014
Link to issue #1 for convenience
@jacob-hegna
Copy link
Contributor

By rustdoc do you just mean how the documentation is formatted within the rust stdlib source files?

@japaric
Copy link
Member Author

japaric commented Apr 28, 2014

@jacob-hegna I have in mind something like:

  • How to format comments that will be processed by rustdoc
  • how to use rustdoc from the command line
  • mention output formats available
  • mention that the official docs are built using rustdoc
  • show input source code and show how the output looks (maybe we can use official docs for this)

@kud1ing
Copy link
Contributor

kud1ing commented May 7, 2014

Some inspiration for the topic on crates: https://mail.mozilla.org/pipermail/rust-dev/2014-May/009767.html

I've never thought about the compilation unit <=> C/C++ object file analogy before.

@alan-andrade
Copy link

I'll cover Arc and Mutex.

@japaric
Copy link
Member Author

japaric commented Jun 17, 2014

I'll cover Arc and Mutex.

Awesome \o/. I have opened #104 and #105 to keep track of this.

@vojtechkral
Copy link
Contributor

I'm working on a chapter on std::fmt traits + an example on how to implement std::fmt::Show#128

@mdinger
Copy link
Contributor

mdinger commented Jun 30, 2014

Please add Phantom types to the list. See #145 for more info.
[EDIT] He added it.

@abonander
Copy link
Contributor

How's your progress on collections::HashMap? I've been toying with it and I think I worked through a few frustrating nuances with it and lifetimes.

@japaric
Copy link
Member Author

japaric commented Jul 3, 2014

@cybergeek94 That chapter is not taken at the moment, if you want to work on it, please open an issue mentioning that you'll work on it. And, if you can, leave a list of the topics you plan to cover (check issues tagged with the C-new label for an example).

@abonander
Copy link
Contributor

I think I want to do Rc next. The docs have a neat example that sort of lines up with a relational model concept, and then continues with rc::Weak to show doubly-linked records. I could extend that example. I could also use the Drop trait to show the user where the object owned by Rc gets destroyed in different scopes.

The Weak example in the docs plays around with RefCell for a more flexible borrowing example. That should probably be covered before Rc.

I can cover RefCell and/or Rc, if neither is taken.

I also want to express my interest in the regex crate, though someone else can take that if they get to it first.

@sinistersnare
Copy link

A few of these crates dont necessarily exist in the Rust repo anymore. Gc is gone, so should be removed, along with green

Also I do not know if we should do url also, because it is no longer in tree.

@strega-nil
Copy link

I agree with @sinistersnare, we should definitely remove url.

@kmcallister
Copy link

The official plugins guide has examples for procedural macros as well as lint plugins.

@steveklabnik
Copy link
Member

I'm not going to track these kinds of things on the tracker. More examples are always welcome.

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