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

Surprised no one has mentioned what the author of C, Dennis Ritchie, said about the addition of "const" to the language.

https://www.lysator.liu.se/c/dmr-on-noalias.html




> Assigning an ordinary pointer to a pointer to a `noalias' object is a license for the compiler to undertake aggressive optimizations that are completely legal by the committee's rules, but make hash of apparently safe programs

I can only imagine what he thought about aggressively optimizing C-family compilers in his later years.




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

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

Search: