User defined attributes use

Namespace rswhite4 at googlemail.com
Mon Sep 16 12:58:50 PDT 2013


On Monday, 16 September 2013 at 19:21:47 UTC, H. S. Teoh wrote:
> On Mon, Sep 16, 2013 at 08:56:17PM +0200, Namespace wrote:
> [...]
>> I hate this NotNull struct hack. It is the same crap as the 
>> current
>> scope solution. BTW: I'm curious which built-in feature will be
>> removed next, maybe AA?
> [...]
>
> That wouldn't be a bad idea, actually. The current AA 
> implementation is
> so horribly broken, and so wrong in so many ways (there are at 
> least 75
> bugs related to AA's, some of the worst of which are 11037, 
> 11025,
> 10916, 10525, 10381, 10380, 10046, just to name a few), that it 
> would do
> a world of good to get rid of them altogether, and then 
> reintroduce a
> properly-designed library solution for them.
>
> Of course, in the meantime everyone whose code breaks because 
> of that
> will form a mob to lynch me, so I'll have to survive long 
> enough to get
> the library solution working first. :-P
>
>
> T

Built-in Arrays have also problems.
What should we do? Remove and rewrite them also as library 
solution?
With Arrays and AA's we would lose a lot of good differences to 
C++. Why should anyone switch to D if it is nothing else as a new 
C++?


More information about the Digitalmars-d-learn mailing list