Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I know you're being sarcastic, but since you bring it up, I think the -> operator in C(++) is awkward as heck. If dereferencing were a suffix operation as in Pascal, you could simply write p.foo instead of (p).foo.

I guess it'd break because of (a* +b) but that's just all the more reason to disallow whitespace around infix operators.



Stars eaten by HN formatting:

It would be p^.foo instead of (^p).foo or p->foo. Less awkward when adding or removing one indirection level too.




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

Search: