[HN Gopher] Mastering Ownership in Rust
___________________________________________________________________
Mastering Ownership in Rust
Author : joseluisq
Score : 26 points
Date : 2021-04-10 07:37 UTC (15 hours ago)
(HTM) web link (blog.logrocket.com)
(TXT) w3m dump (blog.logrocket.com)
| iFreilicht wrote:
| Misleading title. This is a beginner introduction, no mastery to
| be seen. The examples are confusing and partly misleading.
| avaldes wrote:
| > Rust guarantees memory safety with a feature called ownership.
| Ownership works differently from a garbage collector in other
| languages, because it simply consists of a set of rules that the
| compiler needs to check at runtime.
|
| At runtime?
| scoutt wrote:
| Some at compile time, some at runtime (RefCell).
| stefs wrote:
| still, compile time would have been correct. if the checks
| were at runtime, it wouldn't be different from a GC.
| unanswered wrote:
| I failed to find a single a single paragraph in this article that
| does not contain some misconception that renders it misleading to
| a beginner. It's impressive really.
___________________________________________________________________
(page generated 2021-04-10 23:02 UTC)