Re:Why functional programming matters
by mpfundstein on Tuesday April 18, 2017 @04:04PM
(#14142372)
I think C++'s const is one of the strongest consts I know of. Java/C#'s const on the other hand...
[ Parent
| on HN ]
It's actually too strong and the designers of the language later had to introduce `const_cast` in order to relax it in certain circumstances.
In practice, Java's weaker `final` (immutable references) appears to be a reasonable middle ground.