this post was submitted on 22 Mar 2024
118 points (90.4% liked)

Programmer Humor

19171 readers
1496 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 4 points 5 months ago (2 children)

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] 4 points 5 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.

[โ€“] [email protected] 3 points 5 months ago

I believe Ada does.