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.
bauss via Digitalmars-d-learn Sun, 24 May 2020 05:15:49 -0700
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.