371
unsafeCode
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
i will never forgive C for making the type syntax be
instead of the much more reasonable
it also bothers me that
char* args[]
andchar c
are “the same type” in the sense that the compiler lets you writewith 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
@affiliate Hey, you didn't even mention that
char *args[]
actually meanschar **args
in a parameter list.god, what a beautiful language. it brings a tear to my eye
I personally think that C++ can be beautiful. For example:
std::filesystem::path
overrides the/
operator, for specifying parent paths. It’s the same as Kotlin’s OKIO and Pythons standard pathlib.