Hacker News new | past | comments | ask | show | jobs | submit login

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



Yeah, sorry, my example sucks.

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


And what of [a-zA-Z0-9_]? Why should we allow them in both types and variables and functions? That's really confusing.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: