• addie@feddit.uk
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      1 month ago

      True. Although given how easy it is to cast void pointers to the wrong damn thing, it would be nice if you did, makes refactoring much easier. Makes me appreciate std::any all the more.

    • Subverb@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 month ago

      This isn’t malloc though. I have to assume the cast is because the user has experience with the output from an LLM being untrustworthy.