this post was submitted on 11 Feb 2025
281 points (95.2% liked)

Programmer Humor

33320 readers
513 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
[–] affiliate@lemmy.world 1 points 8 hours ago (2 children)

i will never forgive C for making the type syntax be

char* args[]

instead of the much more reasonable

&[char] args 

it also bothers me that char* args[] and char c are “the same type” in the sense that the compiler lets you write

char c, *args[5];

with no problems. i think the C languages would be way easier to learn if they had better type syntax. don’t even get me started on C++ adding support for

auto fn_name() -> ReturnType { … }
[–] barubary@infosec.exchange 1 points 6 hours ago (1 children)

@affiliate Hey, you didn't even mention that char *args[] actually means char **args in a parameter list.

[–] affiliate@lemmy.world 1 points 6 hours ago

god, what a beautiful language. it brings a tear to my eye