[:] as empty associative array literal, plus warning for null

Dicebot public at dicebot.lv
Thu Jul 4 03:00:00 PDT 2013


I am afraid I don't really follow here. How introducing new array 
literal (and making old one stronger typed) compromises 
typeof(null) features?

On Thursday, 4 July 2013 at 00:28:48 UTC, Andrei Alexandrescu 
wrote:
> typeof(null) has quite a few interesting properties. It's the 
> closest type to the bottom of all types (we don't have an 
> actual bottom type), and it subtypes many other types as 
> mentioned.
>
> Introducing yet another type works against that nice uniformity 
> and is yet another arbitrary little thing that people who learn 
> the language would need to know about.
>
>
> Andrei



More information about the Digitalmars-d mailing list