Forbid dynamic arrays in boolean evaluation contexts

Phil Lavoie maidenphil at hotmail.com
Mon Mar 25 10:50:06 PDT 2013


On Monday, 25 March 2013 at 17:40:27 UTC, H. S. Teoh wrote:
> On Mon, Mar 25, 2013 at 06:34:23PM +0100, Phil Lavoie wrote:
> [...]
>> Still comparing against null, since it has a different meaning,
>> maybe null means not found and empty means found but without 
>> value.
>
> If you want to make this distinction, use std.typecons.Nullable.
>
>
> T

Well, Nullable just acts as if it could be null. Why would I use 
it when I got a type that can be null, without overhead?

Are you saying that they are planning to remove null for slices? 
Because if you're not then I truly don't see what's your point.



More information about the Digitalmars-d mailing list