4 ms·
> The fact that golang doesn't have the equivalent of Java's `final` is just poor design. That Java dropped C++-style `const` is also poor design. We're just
by morelisp 6y ago
> The fact that golang doesn't have the equivalent of Java's `final` is just poor design.
That Java dropped C++-style `const` is also poor design.
We're just all really bad at this.
- gher-shyu3i 6y agoC++'s const has some issues, so I can see why. Plus, it's possible to design around it by means of immutable data structures (e.g. see Scala). I think that Rust's approach is superior to C++'s here, but even that has some issues so they have to retort to interior mutability via RefCell.