On Sunday, 24 May 2020 at 12:12:31 UTC, bauss wrote:
Is there a way to do that?

Since the following are both true:

int[] a = null;
int[] b = [];

assert(a is null);
assert(!a.length);

assert(b is null);
assert(!b.length);

What I would like is to tell that b is an empty array and a is a null array.

I'm aware that D is special in that they're equal here BUT in my use-case I must absolutely handle them differently.

Reply via email to