119
True Story (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] SpaceNoodle@lemmy.world -3 points 5 months ago
[-] Scoopta@programming.dev 3 points 5 months ago* (last edited 5 months ago)

It's actually not. Objective-C is a superset of C. C++ is not. It's MOSTLY compatible...but it's not a superset. See the restrict keyword, or the need for casting to and from void*, or the inability to name variables new or delete, or class, or this. I can't count how many C projects I have which use this as a variable name that WILL NOT compile as C++...or the need for extern C to call C ABI code...in no way is it a superset

EDIT: lol, you can downvote me if you want but I think you need to lookup what a superset is

[-] JoYo@lemmy.ml 2 points 5 months ago

hpp is a superset of h

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

Programmer Humor

19178 readers
932 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