C#'s greatest mistakes
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Nov 27 05:59:05 PST 2010
On 11/27/10 1:18 CST, Kagamin wrote:
> Torarin Wrote:
>
>> Static interfaces (same thing as c++ 0x's ditched concepts) seem very
>> useful. Did you consider them at some point?
>
> static interface seems consistent with C#, though, I think static class is misdesing by itself. I'd prefer
>
> template interface ISummable(T)
> {
> static T opAdd(T lh, T rh);
> }
We use template constraints for that kind of stuff.
Andrei
More information about the Digitalmars-d
mailing list