Seems like another routine release. At least no huge surprises that I’m seeing…

  • INeedMana@piefed.zip
    link
    fedilink
    English
    arrow-up
    7
    ·
    10 days ago

    As someone who is just getting into Rust, I appreciate you taking the time to take a look through it and sharing your opinion on whether there is something to learn up about inside or not

    • Ephera@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      10 days ago

      I mean, I do have several years of experience, but I’m still curious to see what others think. 😅
      Obviously, someone cares for these changes, otherwise they would not have been made.

      But yeah, the larger headings seem like niche changes, which most devs will only see the advantages of indirectly, i.e. when a library makes use of it.

      In terms of the stabilized APIs, .as_array() seems like it will come up at times, because you might have an API that demands an array (so with a fixed length, e.g. [u32; 4]), but you only have a slice or a Vec.

      And fmt::from_fn() seems like it could be really convenient when you need different string formatting for a type in one particular place.