4 ms·
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 reaso
by belovedeagle 10y ago
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
- protomikron 10y agoYeah, sorry, my example sucks. However, I am still believing a different operator would make more sense.
- belovedeagle 10y agoAnd what of [a-zA-Z0-9_]? Why should we allow them in both types and variables and functions? That's really confusing.