• NightAuthor@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    8 months ago

    It’s just another option, don’t gotta use it. Maybe you find yourself needing something like this, and the only other choice is making it public. At least with friend classes, you know which classes are friends so you can go look for any dependencies

    • lowleveldata@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      It’s just another option, don’t gotta use it

      It’s not a choice of mine when I’m trying to read through / modify some legacy code base

      • owen@lemmy.ca
        link
        fedilink
        arrow-up
        6
        ·
        8 months ago

        Meh, that already comes with infinite problems, so what’s one more?