• onlinepersona
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    8 months ago

    Do other languages separate definition from implementation? 🤔 Is there another way to distribute libraries with a binary component and a public component?

    CC BY-NC-SA 4.0

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      Some do, most don’t.

      Anyway, you don’t need to separate them in your source code to have a legible component on your distributable. C is the only language that insists you must have part of the source code before you can use the very public perfectly clear interface that is written all over shared libraries.

      Also, you can distribute proprietary libraries by source perfectly well. And it’s the standard except on very few cases where a corporation can coerce most of the world on accepting any shit.