In expression for array
kede
nobody at gmail.com
Wed Jan 23 22:10:51 PST 2008
ah well, could be worse... could be stabbed...
same time, next month it is then :)
BCS Wrote:
> Reply to kede,
>
> > Hi All,
> >
> > How about adding In expressions for general arrays in addition to
> > assoc arrays:
> >
> > if ('i' in eyes)
> > ...
> > as a simple replacement for the more verbose
> > foreach(c; eyes)
> > if (c == 'i')
> > ...
> > I think its a common enough pattern to warrant inclusion?
> >
> > Have fun,
> > kede
>
> this suggestion comes up about every other month, gets thrashed about (pros,
> cons, etc.) until everyone losses interest and then dies the same (un implemented)
> death.
>
>
More information about the Digitalmars-d
mailing list