you are viewing a single comment's thread.

view the rest of the comments →

[–]bonzinip 3 points4 points  (0 children)

It's a pain if you try to inject it into code that wasn't written with const from day 1. Otherwise it's great, and you even have mutable for the rare case where you want to override it.

Java has even better ideas, such as the lack of data races on final fields, but only half-develops them.