• 2 Posts
  • 12 Comments
Joined 1 year ago
cake
Cake day: July 29th, 2023

help-circle



  • I’ve only worked in software for about 15 years, so don’t have much experience outside of git.

    But my first job used Microsoft Team Foundation, and I didn’t need any experience to know that user experience sucked. I’ve also done the “date named zip file” type of version control, which is not ideal.

    When I started using git it just made sense to me, have had no major complaints since.




  • biaOPtoRustNewb solving AoC in rust
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    OK, so I’m thinking…

    The error says I can’t combine immutable and mutable in the same function. I guess this makes sense, and that it’s because I’m not allowed to mutate an object while accessing it.

    Is this a correct understanding of the error, or is there anything I can do to use this approach?




  • biaOPtoRustNewb solving AoC in rust
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    No, that’s probably wrong.

    I’ve just been trying different combinations of borrowing, but I can’t get it to works.

    I’m pretty sure it’s the cards[id].copies += add that is the cause of my issues.