static foreach (Was: Re: static switch)

Timon Gehr timon.gehr at gmx.ch
Fri Mar 7 06:12:25 PST 2014


On 03/06/2014 11:06 PM, bearophile wrote:
>
> Introducing a third type of foreach that is intermediate between the
> semantucs of the regular foreach and the already present typetuple
> foreach is ridiculous,

Indeed.

> will increase the language complexity and will
> make D and even more confusing for newbies.

You seem to be arguing for making static foreach semantics inconsistent 
with static if semantics and the static foreach construct useless for 
generation of declarations which is among the main use cases. Is this 
correct?


More information about the Digitalmars-d mailing list