Protocols vs Concepts?

Shammah Chancellor anonymous at coward.com
Wed Nov 20 15:46:06 PST 2013


On 2013-11-20 23:36:54 +0000, Dicebot said:

> So yeah, it is neat, but not neat enough for anyone to actually bother 
> to push it into Phobos :) If you want to do it, it is worth noting that 
> you don't necessarily need to restrict to templated interfaces, normal 
> are also legit.

It should be in phobos since it's widely used in most templated 
modules.   Even if it's simple, it's used all over the place and should 
be standardized.   As for the normals being legit, that's true.   
However,  It would be nice to see an InputRange() interface in the 
library to be able to see "Ah yes, this is what needs to be implemented 
to be an input range at compile time."




More information about the Digitalmars-d mailing list