Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. mcc (mcc@mastodon.social)'s status on Tuesday, 06-Dec-2022 08:05:57 UTC mcc mcc

    I find myself making good progress with Rust, but also, every so often I have to do something frighteningly high-level to do something simple. For example, it turns out when you access an array member, it locks the *entire array* for mutation. So if you want to put two items A and B, from the array into variables and have both be mutable, you… can't.

    Unless you do this very complicated thing with "split_at_mut". Which works. But would someone new to programming have been able to figure it out?

    In conversation Tuesday, 06-Dec-2022 08:05:57 UTC from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/109/464/849/437/818/225/original/57fa8816e0da2bce.png
    • James Broadhead repeated this.
    • mcc (mcc@mastodon.social)'s status on Tuesday, 06-Dec-2022 08:05:57 UTC mcc mcc
      in reply to

      I think someone in Discord said there's an experimental, unstable feature in nightly that makes this simple, but of course there's always an experimental, unstable feature in nightly that makes things simple

      In conversation Tuesday, 06-Dec-2022 08:05:57 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.