new #rustlang article
A half-hour to learn Rust covers variable bindings, pattern matching, immutability, references, lifetimes, borrow rules, structs, traits, enums, generics, closures, and more.
It makes for a *hectic* 30 minutes!https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/ …
-
-
Should "// error: cannot assign to `x` because it is borrowed" comment be on the line before the println, rather than after?
-
Mhh I pretty much put all of them after the affected line, because you need to read the code before the error message! "minus_two" was indeed missing a minus, all fixed!
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.