2 ms·
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
by MrNet32823 11mo ago
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.
- dude250711 11mo agoHe also stopped shipping things.
- JonChesterfield 11mo agoI 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.
- maleldil 11mo agoHow 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?