this post was submitted on 22 Mar 2024
0 points (NaN% liked)

Programmer Humor

32373 readers
560 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] merthyr1831@lemmy.world 0 points 7 months ago (1 children)

If C++/C were real languages for real programming they'd enforce this in the compiler.

No sane language designer would say "it is imperative that you do not implement your class in its header file" then write a compiler designer to say "oh you implemented your code in the header file? lol lmao that rocks"

They have played you all for fools.

[โ€“] Lauchmelder@feddit.de 0 points 7 months ago

not saying it's good design, I ditched C++ long ago. at least the C++20 modules API is gonna fix this, right guys?