NotNull pointers

bearophile bearophileHUGS at lycos.com
Wed Aug 31 12:16:37 PDT 2011


Simen Kjaeraas:

> I feel it is too much a departure from the style otherwise present in D.

This is why I have shown my original syntax with [foreach() if()].


> It is important not only that the syntax is good in and of itself,
> but also in the context of D.

The syntax you have shown is noisy and hard to read.
Array/seq comps are all (or most) a matter of syntax sugar. So if their syntax is bad, they miss their main point by a mile.

Bye,
bearophile


More information about the Digitalmars-d mailing list