I have some C knowledge including dynamic memory allocation (but not file io) am i qualified enough to learn rust as my second language?
basically the title, plus I also know about some common C pitfalls
basically the title, plus I also know about some common C pitfalls
what are their differences? and what are they exactly?
I started watching anime back in 2021, watched all the way thrpugh the big titles except bleach but i did not like it when i saw it even until ep 30, anyways, I have watched and read a lots of anime and manga... to the point where most recommendations in this thread might be something i may have already watched... or read, I mean from the years of 2021 to 2025 I've had read so many underrated and weird gems for mangas that I, well, don't really feel much excitement to be honest... plus i think those animes targeting teenagers now don't really excite me as much as they used to... back when i was 14... so it'd be better if you could recommend something that is somewhat unique or maybe some new season of some anime or maybe some anime movie, (not ones from ghiblli cuz i watched them all, and makoto shinkai,) Thanks :)
As a first example of ownership, we’ll look at the scope of some variables. A scope is the range within a program for which an item is valid. Take the following variable:
let s = "hello";
The variable s refers to a string literal, where the value of the string is hardcoded into the text of our program. The variable is valid from the point at which it’s declared until the end of the current scope. Listing 4-1 shows a program with comments annotating where the variable s would be valid.
{ // s is not valid here, since it's not yet declared
let s = "hello"; // s is valid from this point forward
// do stuff with s
} // this scope is now over, and s is no longer valid
I don't get one thing, it says s refers to a string literal here, where its value is "hardcoded" into the text of our program... but why is that even relevant... and I do not get it, what does this have to do with ownership, and why later on the tutorial uses String::form ?? this weird syntax...?