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

Jonathan Blow had strong objection with const keyword. I forgot because i did not understand at that time. Does anyone with jai experience have a counter point to that.


I believe the standard counterargument goes:

- either it's transitive, in which case your type system is very much more complicated

- or it isn't, in which case it's a near useless liability

Naturally C++ runs with the latter, with bonus extra typing for all the overloads it induces.


How isn't it transitive in C++? If the variable/reference is const, you can't modify fields, and you can only call const methods. What else do you need?


He also stopped shipping things.




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

Search: