thoughts on immutability in D
Jonathan M Davis
jmdavisProg at gmx.com
Fri Sep 23 16:55:56 PDT 2011
On Friday, September 23, 2011 16:34 Mehrdad wrote:
> So far, the 5% of the code it breaks has made it 95% worthless for me,
> though I'm not sure about others (would love to hear otherwise)...
But _what_ does it break? The lack of logical const is definitely limiting,
but at the moment, I can't think of even one case where transitive const is a
big isue. The only issues with const that I can think of (aside from quality
of implementation issues with the current compiler) are the lack of logical
const and the issues with having a non-const reference to a const object
(which Rebindable fixes and Michel Fortin's propose language change would do
an even better job of fixing if it ever gets accepted). You seem to have an
issue specifically with the transitivity of const, and I don't understand what
the problems are that transitive const is causing.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list