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

> If you as a reader need const to make sure a local variable is not changed this is usually a symptom of this function being too long to see at a glance

If the compiler can enfore an invariant (constness), why cede that functionality on the hopes you can ensure it yourself?

By the same line of argumentation you should do away with the static type system.



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

Search: