Re: Empty VS null array?

2013-10-18 Thread Blake Anderton
I agree a null value and empty array are separate concepts, but from my very anecdotal/non rigorous point of view I really appreciate D's ability to treat them as equivalent. My day job mostly involves C# and array code almost always follows the pattern if(arr == null || arr.Length == 0) ...

Re: Empty VS null array?

2013-10-18 Thread Blake Anderton
On Friday, 18 October 2013 at 20:32:48 UTC, ProgrammingGhost wrote: Really? I NEVER write that pattern. I may check if an array is null or don't because the function shouldnt be receiving nulls (maybe its bad but idc). I just write linq and never bother to see if something is empty Yeah, LINQ