Skip to content

Remove mentions of managed pointers from the tutorial #13287

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

Closed
bstrie opened this issue Apr 3, 2014 · 5 comments · Fixed by #13329
Closed

Remove mentions of managed pointers from the tutorial #13287

bstrie opened this issue Apr 3, 2014 · 5 comments · Fixed by #13329

Comments

@bstrie
Copy link
Contributor

bstrie commented Apr 3, 2014

Their continued existence in the tutorial is causing confusion over what the status of this feature is. Let all the world know that managed pointers are relegated to the dustbin of history!

@thestinger
Copy link
Contributor

It's unclear to me if the tutorial is being rewritten from scratch by Mozilla. There's not much motivation for anyone to work on it if it's just going to be thrown out.

@bstrie
Copy link
Contributor Author

bstrie commented Apr 3, 2014

That may be true, but if a good samaritan wanted to do just enough work to delete mentions of them from the current tutorial, it would not be unappreciated.

@bstrie bstrie added the A-docs label Apr 3, 2014
@ckendell
Copy link
Contributor

ckendell commented Apr 3, 2014

Hi, I am the one who asked about this initially. I have started to work on it now.

@brson
Copy link
Contributor

brson commented Apr 4, 2014

At this point I do think it's worthwhile to keep maintaining the tutorial. Even if it doesn't survive as the tutorial, it does contain a lot of information that will end up disseminated elsewhere.

@kud1ing
Copy link

kud1ing commented Apr 4, 2014

Not maintaining the tutorial leads to a growing collection of inaccurate or wrong information.
Removing it could give newcomers a better first-time experience of Rust.

bors added a commit that referenced this issue Apr 4, 2014
…orial, r=cmr

Work on #13287 

This is not ready for a merge yet, but I wanted to get some eyes on what I have done so far.

As of right now, all references in the text to managed boxes or pointers are removed. Code associated with those specific sections of text have likewise been altered. I also removed all references to managed closures.

There is a small change I would like to add to the work done in 3137cd5, on the new lines 1495 and 1496, I would like to change those values to 10 and 20. I did the same in a later change on lines 1596 and 1508.

There are still bits of sample code that use managed pointers and the sigil @. Those are next on my list to remove, but I wanted to have the outstanding changes reviewed first. The uses of @ in the code samples are a bit more embedded, and I will need to be more careful changing them as to not change the purpose of the code examples.

I ensured that make check still passes, although I'm not sure if that actually tests the code in tutorial.md.

One issues I ran into, and tried to avoid, was that `tutorial.md` is formatted with a nice column limit. I was unsure how this was enforced, so wherever I edited a line, I did my best to keep edits on the line they previously existed on. As such, the plain text of `tutorial.md` looks a bit strange as I've left it, and I will clean that up as suggested. The rendered markdown output should not be affected.
@bors bors closed this as completed in 3bfa050 Apr 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants