So did I! As I get more sponsors, I will increase the length of my videos. With enough sponsors I would love to start making more frequent videos about other Rust news and topics as well.
I have so many questions about your comment! 😂 First, why did the library author export an empty constant? I have never seen that! Second, why do you need to check if the library’s constant is empty? Third, you imply that you would rather call is_empty at runtime than peek at the value of the constant after a lint tells you about it-why?
@@NathanStocks Because if it's a constant in another crate it can change, so checking once doesn't work. Maybe it's a constant from a build-time environment variable, or something. It's like how `char::UNICODE_VERSION < (16, 0, 0)` is true right now, but probably soon won't be, and clippy would be very wrong to tell me not to check it and just remove the else.
Hey Nathan, thanks for still making this video with all the sponsor stuff in mind. I would completely understand if you declined to continue this series (too many people who burn out dedicating their lives to something like this for nothing in return), but it is highly enjoyable content.
I really did like the more in-depth walkthrough of all changes version-to-version, it was hugely informative.
So did I! As I get more sponsors, I will increase the length of my videos. With enough sponsors I would love to start making more frequent videos about other Rust news and topics as well.
Does the tuple collect() means that one can collect into nested tuples? That's quite cool
I tried it...and YES!
fn main() {
let input = vec![1, 2, 3, 4, 5];
let ((doubled, tripled), squared): ((Vec, Vec), Vec) =
input.iter().map(|x| ((x * 2, x * 3), x * x)).collect();
assert_eq!(doubled, [2, 4, 6, 8, 10]);
assert_eq!(tripled, [3, 6, 9, 12, 15]);
assert_eq!(squared, [1, 4, 9, 16, 25]);
}
Clear and concise, thanks a lot for this overview.
You’re welcome! Thank you for your kind words.
Just finished, Ultimate Rust Crash Course on udemy.
Keep up the good work.
That’s wonderful to hear! Thank you for your kind words!
@@NathanStocks hey you really ought to put links to that in your description
These are great. Good job.
Thank you!
Great video
Thank you!
oooooow! You can now make apple vision pro apps in rust
Hopefully 8 is smart enough to not warn on constants from other crates, where no, I don't know if it's empty.
I have so many questions about your comment! 😂
First, why did the library author export an empty constant? I have never seen that! Second, why do you need to check if the library’s constant is empty? Third, you imply that you would rather call is_empty at runtime than peek at the value of the constant after a lint tells you about it-why?
@@NathanStocks Because if it's a constant in another crate it can change, so checking once doesn't work. Maybe it's a constant from a build-time environment variable, or something. It's like how `char::UNICODE_VERSION < (16, 0, 0)` is true right now, but probably soon won't be, and clippy would be very wrong to tell me not to check it and just remove the else.
Huh, interesting.
First! So happy to find this video today.
Congrats on the first post! I’m also glad you found this video today! And apparently before everyone else! 😂
i had a good laugh at number 8 haha
😄
Hey Nathan, thanks for still making this video with all the sponsor stuff in mind. I would completely understand if you declined to continue this series (too many people who burn out dedicating their lives to something like this for nothing in return), but it is highly enjoyable content.
Thank you for your kind words!