well yeah except const doesn't make objects or arrays immutable
Yeah it makes their structure immutable? Something like that. Not useless but not what you would expect.
But for non-objects and non-arrays it's fine.
I feel that Java’s “final” would have been a better choice than “const”. It doesn’t have the same confusing connotation.
Yeah it makes their structure immutable? Something like that. Not useless but not what you would expect.
But for non-objects and non-arrays it's fine.
I feel that Java’s “final” would have been a better choice than “const”. It doesn’t have the same confusing connotation.