Static Foreach

John Colvin john.loughran.colvin at gmail.com
Sun Nov 24 12:31:06 PST 2013


On Sunday, 24 November 2013 at 20:22:05 UTC, Philippe Sigaud 
wrote:
> 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.

Yeah I'm mostly working around porting std.range and 
std.algorithm. They're a pretty good subset of "useful things to 
do with sequences of things". Even so, I suspect come review 
people will want it pruned a little.


More information about the Digitalmars-d mailing list