Rust 1.79.0: Top 10 Most Interesting Things

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024

ความคิดเห็น • 24

  • @JamesHarrisonHaribo
    @JamesHarrisonHaribo 3 หลายเดือนก่อน +12

    I really did like the more in-depth walkthrough of all changes version-to-version, it was hugely informative.

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +3

      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.

  • @shadamethyst1258
    @shadamethyst1258 3 หลายเดือนก่อน +8

    Does the tuple collect() means that one can collect into nested tuples? That's quite cool

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +4

      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]);
      }

  • @pyprem
    @pyprem 3 หลายเดือนก่อน +2

    Clear and concise, thanks a lot for this overview.

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +1

      You’re welcome! Thank you for your kind words.

  • @seriousmasterful
    @seriousmasterful 3 หลายเดือนก่อน +8

    Just finished, Ultimate Rust Crash Course on udemy.
    Keep up the good work.

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +1

      That’s wonderful to hear! Thank you for your kind words!

    • @lsp0
      @lsp0 3 หลายเดือนก่อน

      @@NathanStocks hey you really ought to put links to that in your description

  • @JonDisnard
    @JonDisnard 3 หลายเดือนก่อน +2

    These are great. Good job.

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +1

      Thank you!

  • @jorgeosorio1613
    @jorgeosorio1613 3 หลายเดือนก่อน +2

    Great video

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +1

      Thank you!

  • @denizsincar29
    @denizsincar29 หลายเดือนก่อน

    oooooow! You can now make apple vision pro apps in rust

  • @pfeilspitze
    @pfeilspitze 3 หลายเดือนก่อน

    Hopefully 8 is smart enough to not warn on constants from other crates, where no, I don't know if it's empty.

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +2

      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?

    • @pfeilspitze
      @pfeilspitze 3 หลายเดือนก่อน +1

      @@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.

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน +1

      Huh, interesting.

  • @t3chrs
    @t3chrs 3 หลายเดือนก่อน +4

    First! So happy to find this video today.

    • @NathanStocks
      @NathanStocks  3 หลายเดือนก่อน

      Congrats on the first post! I’m also glad you found this video today! And apparently before everyone else! 😂

  • @irlshrek
    @irlshrek 3 หลายเดือนก่อน +3

    i had a good laugh at number 8 haha

  • @jackkendall6420
    @jackkendall6420 3 หลายเดือนก่อน +1

    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.

    • @NathanStocks
      @NathanStocks  2 หลายเดือนก่อน

      Thank you for your kind words!