120
True Story (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] onlinepersona@programming.dev 4 points 1 year 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 4 points 1 year 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@programming.dev 3 points 1 year ago

I believe Ada does.

this post was submitted on 22 Mar 2024
120 points (90.5% liked)

Programmer Humor

24374 readers
705 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS