I want to add a Phobos module with template mixins for common idioms.

Robert Rouse robert.e.rouse at gmail.com
Mon May 6 13:03:04 PDT 2013


On Monday, 6 May 2013 at 19:57:27 UTC, Andrei Alexandrescu wrote:
> On 5/6/13 3:14 PM, Idan Arye wrote:
>> Template mixins can be used to implement some common 
>> programming
>> idioms(and design patterns). I have already implemented two of 
>> them for
>> my own project - and I want to make them into a Phobos module 
>> - maybe
>> `std.mixins`.
>
> Nice idea, but at the first level of detail (without looking 
> into it) the title should not be dictated by implementation 
> artifacts, i.e. we don't have modules such as "std.templates" 
> or "std.structs" etc. Conversely, if you implement a pattern 
> via other means than a mixin, you're in trouble :o).
>
> Andrei

Since they are idioms, why not std.idioms or std.idiomatic?


More information about the Digitalmars-d mailing list