-
Notifications
You must be signed in to change notification settings - Fork 13k
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
TRPL: Drop #25317
TRPL: Drop #25317
Conversation
Nice! I was almost quite surprised at how short this was, so I'm curious, but what do you think about discussing topics like:
etc. |
I wasn't sure how far to go, exactly, and didn't want this to be a TODO :) I'm open to some of this for now, and more later. Basically, I'm mostly focused on getting tutorials done for friday's release, but some of this will be quick to add and have a lot of value. I'll update it later tonight and ping you again :) |
afterwards. Last in, first out. | ||
|
||
So what is `Drop` good for? Generally, `Drop` is used to clean up any resources | ||
associated with a `struct` other than memory. For example, the [`Arc<T>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a tad awkward. It is definitely also used for cleaning up memory (std::boxed::*
, std::rc::*
std::collections::*
, ...).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i'll remove that
@alexcrichton so, in the interest of getting the basics in before the deadline, I'm thinking about leaving that to future work, and just merging what I have now. What do you think? |
For future reference for the future work: I do so enjoy examples of using (expurgiated playpen version here too, so you can run it directly from the browser and see the cool output) |
On a more serious note: I think Knuth uses an "under construction" icon for sections of his text that he knows will be undergoing expansion or revision in the next edition of his text. Maybe you should consider doing something similar, so that the reader knows that there is more to be learned on the topic, and that they are encouraged to ask around in the community about it? |
@pnkfelix i like that idea, for sure. |
r? @alexcrichton