Комментарии:
That was really educational. Thanks! I really liked using extend on the optional.
I think it would have been easier to understand if you started with just iterating over the optional before combining that with other things. For example:
println!("Some variant:");
let mut optional_grade = Some("A+");
for grade in optional_grade {
println!("{}", grade);
}
println!("None variant:");
optional_grade = None;
for grade in optional_grade {
println!("{}", grade);
}
println!("Done.");
I think `std::iter::once()` would've been interesting, given it effectively wraps the passed value in an `Option<T>`, and calls `.into_iter()` on it, when the `.next()` method is called on the returned iterator...
ОтветитьI'm looking forward to your videos every day. Keep the incredible work up!
ОтветитьGreat video. Is that new syntax (grades:?). Must have missed that.
ОтветитьI think a good idea for a topic would be to discuss common structures used to avoid complicated ownership issues as people new to Rust encounter this problem regularly. An example of something I see often is when two objects need to reference each other it's common to use ids to reference each other rather than use the actual underlying object so instead of having a Library contain a Vec<Book> you will instead see a Library have a Vec<BookId> and then any actual data can be accessed via some kind of Map based lookup
ОтветитьSuper! Thank you
Ответитьcomment...
ОтветитьKeep up the good work.
Ответитьwhats difference between iter() into_iter()?
ОтветитьThis one was great!
ОтветитьI really like this!
ОтветитьNice video man!
ОтветитьCool!
Ответитьmy head exploded
ОтветитьDedicated playlist on Concurrency pls !! ur teaching skills r amazing, I have gone through the concurrency videos in your rust book playlist , the way you explained the concurrency is fantastic, you made it look so simple !! A dedicated playlist covering topics deadlocks mitigation strategies, sync,send,async & await will be a huge help for rust community !! Waiting for it ...
ОтветитьThis new series is the best yet, maybe a videos where you do wider refactors applying the concepts here would be useful.
ОтветитьLove this series so much
Ответитьgreat stuff. very practical 🎉🎉
Ответитьi love your vids, but in general I think you should try to use more graphical examples, like you know, drawing pointers in paint etc. That would really help
ОтветитьOMG I literally just did if let some push yesterday. There's so much I don't know yet
ОтветитьSuper clean and concise! Thanks.
ОтветитьGreat video, all killer no filler. I'm going to watch some of your other videos and probably subscribe.
ОтветитьAs I really enjoy your content, here I wonder if less code is actually better. Code is supposed to be read by other developers and should be self explanatory without writing any comments. Maybe more experienced Rust developers will not have problem with reading such constructs but for others it might be tough if there is some "magic" happening behind the scenes. For example in JS sometimes it's better to write a simple for loop than use a reduce function, sometimes it's better to be just more explicit. But maybe I'm wrong.
ОтветитьWhat would you have needed to do to do the opposite to the last one, keep only the strings at the end? Also, I didn't realise yo ucould use the template strings like that in rust!
ОтветитьI really like this format, simple and powerful functions explained clearly and fast. Great stuff!
ОтветитьThis type information in your editor is just confusing.
Especially the one, that's not valid rust.
A newbie might think, it's necessary to add the type info.
Never would've thought of using flatten on an iterator over options. Very educational.
ОтветитьClean and concise!!! Can't wait to see your new videos : )
ОтветитьThis was one of those videos where I just had to keep taking screenshots. I really enjoy getting to see all of rust’s obscure methods and how they can be chained into single line expressions that perform multiple lines of code worth of operations
Ответитьplease make more of idiomatic rust
ОтветитьMy brain…it hurts lol
Ответитьthis is beautiful
Ответить