[Issue 3889] Forbid null as representation of empty dynamic array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 27 13:40:51 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=3889


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #14 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-02-27 13:40:38 PST ---
There's also:
arr = null;

Would you have to change that to `arr = []` to fit the enhancement request?
That would break so much code. 

I see no benefit to banning the usage of null. 

And to get a little personal, if you care about code readability so much, bear,
how about stopping using single-letter variable names or complex single-line
expressions in your own code?

These are some excerpts from your code:
c[r1] = [9 * i + j, (i/3*3 + j/3) * 9 + k + 81, 9 * i + k + 162, 9 * j + k +
243];
if (sr[rr = aux.r[c][r2]]++ != 0)
if (--sr[rr = aux.r[c][r2]] != 0)

Next time you talk about clarity take a look at your own code first.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list