• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    3 hours ago

    it’s an easy refactor to make it not global

    I have enough experience to know that making global state non-global is usually anything but easy.

    • Boomkop3@reddthat.com
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      Damn, suppose I won’t just pass it as a pointer from the call site. That’d be so difficult to add an int to a struct

      30 years my ass