D - Unsafe and doomed
Walter Bright
newshound2 at digitalmars.com
Sat Jan 4 11:04:59 PST 2014
On 1/4/2014 1:18 AM, "Ola Fosheim Grøstad"
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> I don't disagree, but isn't that just a special case of type constraints? Why
> limit it arbitrarily to null-values, limiting the range of values is useful for
> ints and floats too. If you move the constraint check to the function caller you
> can avoid testing when it isn't needed.
Yes, the non-NULL thing is just one example of a useful constraint one can put
on types.
More information about the Digitalmars-d
mailing list