Skip to content

Commit

Permalink
Don't conflate regions and affine types
Browse files Browse the repository at this point in the history
Fixes #23642
  • Loading branch information
steveklabnik committed Mar 23, 2015
1 parent b0aad7d commit 05c9728
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/doc/trpl/pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,10 @@ they go out of scope:
However, boxes do _not_ use reference counting or garbage collection. Boxes are
what's called an *affine type*. This means that the Rust compiler, at compile
time, determines when the box comes into and goes out of scope, and inserts the
appropriate calls there. Furthermore, boxes are a specific kind of affine type,
known as a *region*. You can read more about regions [in this paper on the
Cyclone programming
language](http://www.cs.umd.edu/projects/cyclone/papers/cyclone-regions.pdf).
appropriate calls there.

You don't need to fully grok the theory of affine types or regions to grok
boxes, though. As a rough approximation, you can treat this Rust code:
You don't need to fully grok the theory of affine types to grok boxes, though.
As a rough approximation, you can treat this Rust code:

```{rust}
{
Expand Down

0 comments on commit 05c9728

Please sign in to comment.