Static Foreach

Philippe Sigaud philippe.sigaud at gmail.com
Sun Nov 24 12:16:11 PST 2013


On Sun, Nov 24, 2013 at 9:06 PM, John Colvin
<john.loughran.colvin at gmail.com> wrote:

>> You can have a look there:
>>
>> https://github.com/PhilippeSigaud/dranges/blob/master/tuple.d
>>
>> and
>>
>> https://github.com/PhilippeSigaud/dranges/blob/master/typetuple.d
>>
>> (this one was fun: regex on type tuples!)
>> https://github.com/PhilippeSigaud/dranges/blob/master/typepattern.d
>
>
> I've been looking at that stuff recently :-)  It's pretty cool, in
> particular the regex stuff.
>
> I'm wary of going overboard though, it's very tempting to keep adding
> functionality that is too obscure for a standard library.

That's why I never tried to get it into Phobos :)
And, truth is, I used almost none of it, even when most of this code
is 4 years old.
Mapping/filtering/reducing tuples is the most useful part.

The regex-on-types stuff was purely for fun.


More information about the Digitalmars-d mailing list