Can non-nullable references be implemented as a library?

Denis Koroskin 2korden at gmail.com
Sun Nov 7 09:37:42 PST 2010


On Sun, 07 Nov 2010 20:21:49 +0300, steveh <steveh57 at useshotmai.l> wrote:

> Andrei's stance is, either a library addon or ship D without that  
> feature. D's library already contains both tuples and algebraic data  
> types. They're simple to use, almost like in Python. The reason for  
> library addons isn't that builtin features make less sense, the reason  
> is that TDPL is already out and we can't improve the language in any  
> radical way.

People have proposed syntax that won't break existing code (e.g. T@ vs T).  
It also means T is still nullable by default, and that's good enough for  
me. Better than nothing anyway.

In addition, I really hope there will be TDPL 2nd edition some day.


More information about the Digitalmars-d mailing list