get from tuple by type

Charles Cooper via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 15 16:17:34 PDT 2015


Sure. It is also easy to write merge sort. Or 
std.typetuple.Erase. Or Tuple.opIndex(size_t). But that doesn't 
mean everybody does it. Some utilities (and I am not saying this 
is, but it could be) are widely used enough that it makes sense 
to put them in the standard.

On Sunday, 15 March 2015 at 22:44:21 UTC, ketmar wrote:
> p.s. to be clear: it's freaking hard to do metaprogramming and 
> template
> functional programming in c++, that's why c++ committee accepts 
> such
> things. and it's very easy to write such code in D, so this is 
> a good
> excersise for newcomers and almost no-brainer for expirienced D 
> user.



More information about the Digitalmars-d-learn mailing list