• @onlinepersona
    link
    English
    43 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

    • @[email protected]
      link
      fedilink
      43 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.

    • @0x0
      link
      33 months ago

      I believe Ada does.