User defined attributes use

Artur Skawina art.08.09 at gmail.com
Mon Sep 16 13:35:48 PDT 2013


On 09/16/13 21:58, Namespace wrote:
> 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
[...]
> Built-in Arrays have also problems.
> What should we do? Remove and rewrite them also as library solution?

Yes. Without any doubt whatsoever. [1]

> With Arrays and AA's we would lose a lot of good differences to C++.

Removing hardwired builtin magic does not imply syntax changes.
And, the syntax that matters in practice is not the declarations,
but the literals, which is where the language could do much better
anyway.

> Why should anyone switch to D if it is nothing else as a new C++?

D is not only about arrays.

artur

[1] Obviously, not a practical short term option for the existing D2 language.
    That's probably clear from the context, and the question was meant to be
    rhetorical -- but it could actually be done and would make sense; it's just
    not a change that would make enough of a difference on its own; the cost
    would be to high. 
    


More information about the Digitalmars-d-learn mailing list