Skip to content

Commit 55f6a84

Browse files
authored
Remove memory management comparison (#1049)
This is a follow-up to #998 and the discussion in #1049. The comparison page is now gone: like @randomPoison said, it feels redundant and I also mostly skip over it when teaching the class. I also took out some duplication in the Rust memory management page. I would be up for simplifying the whole chapter down to one or two slides as @djmitche suggests: that would leave us with more time for covering ownership.
1 parent c6af2a0 commit 55f6a84

File tree

3 files changed

+0
-37
lines changed

3 files changed

+0
-37
lines changed

src/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
- [Scope-Based Memory Management](memory-management/scope-based.md)
8686
- [Garbage Collection](memory-management/garbage-collection.md)
8787
- [Rust Memory Management](memory-management/rust.md)
88-
- [Comparison](memory-management/comparison.md)
8988
- [Ownership](ownership.md)
9089
- [Move Semantics](ownership/move-semantics.md)
9190
- [Moved Strings in Rust](ownership/moved-strings-rust.md)

src/memory-management/comparison.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/memory-management/rust.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Memory management in Rust is a mix:
44

55
* Safe and correct like Java, but without a garbage collector.
6-
* Depending on which abstraction (or combination of abstractions) you choose, can be a single unique pointer, reference counted, or atomically reference counted.
76
* Scope-based like C++, but the compiler enforces full adherence.
87
* A Rust user can choose the right abstraction for the situation, some even have no cost at runtime like C.
98

0 commit comments

Comments
 (0)