Congratulations to the D Team!

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Jul 9 08:00:58 PDT 2012


On Mon, Jul 09, 2012 at 01:44:24PM +0200, Timon Gehr wrote:
> On 07/09/2012 08:37 AM, Adam Wilson wrote:
> >Object is now const-correct throughout D. This has been a dream for
> >many of you. Today it is a reality.
> 
> PITA. Forced const can severely harm a code base that wants to be
> flexible -- it leaks implementation details and is infectuous.
[...]

Can you give an explicit example of code that is harmed by const
correctness? IME, it rather helps code quality than harm it. Besides,
since everything converts to const, it doesn't harm as much code as one
might imagine (most code will be unchanged except where it matters --
which IMO is a good thing).

But YMMV.


T

-- 
This sentence is false.


More information about the Digitalmars-d mailing list