1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-19 22:19:29 +02:00

Update approaches.md (#2317)

I might be missing something, but RAII is generally associated with
programming languages with manual memory management (prominently with
C++, where it originated), so I think it is not very appropriate to have
it mentioned here.
This commit is contained in:
Jason Lin 2024-08-28 01:57:52 +10:00 committed by GitHub
parent cfdd9c37a9
commit d45ec368ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ Traditionally, languages have fallen into two broad categories:
Haskell, ...
- A runtime system ensures that memory is not freed until it can no longer be
referenced.
- Typically implemented with reference counting, garbage collection, or RAII.
- Typically implemented with reference counting or garbage collection.
Rust offers a new mix: