You must log in or # to comment.
Safe code is a skill, not a feature.
That is why I use just
int main(){...}
without arguments instead.Any
void main(){...}
enjoyers?Very true, the less user input you have the safer your code will be.
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[]
andchar c
are “the same type” in the sense that the compiler lets you writechar 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 { … }