

30·
19 days agoits a vocal minority, don’t pay them any attention


its a vocal minority, don’t pay them any attention


types in C are pretty weird
int *a can be read as
*a is a inta is a pointer to intint *a, b is read as
*a and b are inta is a pointer to int and b is a intbool getofmylawn(Lawn lawn)
getoffmylawn(Lawn lawn) is a boolgetoffmylawn is a function that takes a Lawn and returns a boolAnd then you have function pointers
bool (*foo(int a))(float b)
(*foo(int a))(float b) is a bool*foo(int a) is a function from float to boolfoo(int a) is a function pointer from float to boolfoo is a function that takes a int and returns a function pointer from float to boolreally weird in my opinion.
Isn’t this just like the internet though?