The current status of D?

Kagamin spam at here.lot
Sun Dec 4 02:31:37 PST 2011


Mehrdad Wrote:

> On 12/1/2011 1:24 PM, Buk wrote:
> > Is D ready for prime time?
> Idk, the fact that I run across transitive-const-related situations like
> stackoverflow.com/questions/7948612/annoying-transitive-const-ness-issue-in-d 
> <http://stackoverflow.com/questions/7948612/annoying-transitive-const-ness-issue-in-d>
> makes it so I can't use D at all, since it's hard to go around these 
> issues sometimes.

I think, the correct diagnostic it your case should be "const constructor is not defined". Also const system gives you a chance to design const-correct code, it doesn't necessarily make it simple. Design takes a lot of effort. That said, yes, you can get stuck unable to solve your problem with your skills. Though I don't think const-correct code is a must: I didn't see a single bug caused by lack of const. Const-correct code doesn't buy you a lot, really.

btw, the inout solution is not quite right thing there, Steven proposed the correct design: const opSlice should return Slice!const(T), not const(Slice!T).


More information about the Digitalmars-d mailing list