News for hackers. Stuff that matters.
Re:C for Python programmers (2011) by belovedeagle on Monday November 07, 2016 @07:12PM (#12896495)
I don't see how the bool example follows; in what way is negating a boolean like dereferencing a pointer w/r/t types? ! is bool->bool; * is * P -> P.

The reason the same symbol is used is because of the way C types are read:

    int x; // (x) is an int
    int *x; // (*x) is an int
    int **x; // (**x) is an int
    int x(double); // (x(1.)) is an int
Re:C for Python programmers (2011) by protomikron on Monday November 07, 2016 @07:32PM (#12896597)
Yeah, sorry, my example sucks.

However, I am still believing a different operator would make more sense.

Re:C for Python programmers (2011) by belovedeagle on Tuesday November 08, 2016 @12:12AM (#12897848)
And what of [a-zA-Z0-9_]? Why should we allow them in both types and variables and functions? That's really confusing.