unsafeCode
unsafeCode
![](https://lemmy.ml/pictrs/image/e4ec26aa-d8dc-42bb-8598-4049ee0b9639.webp?format=webp&thumbnail=128)
![](https://lemmy.ml/pictrs/image/e4ec26aa-d8dc-42bb-8598-4049ee0b9639.webp?format=webp)
1 crossposts
unsafeCode
You're viewing a single thread.
i will never forgive C for making the type syntax be
c
char* args[]
instead of the much more reasonable
c
&[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
c
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
cpp
auto fn_name() -> ReturnType { … }
@affiliate Hey, you didn't even mention that char *args[]
actually means char **args
in a parameter list.
god, what a beautiful language. it brings a tear to my eye