proposal: @mixin functions to auto-mixin at call site

Dicebot public at dicebot.lv
Thu Sep 5 03:36:38 PDT 2013


On Wednesday, 4 September 2013 at 17:10:32 UTC, Timothee Cour 
wrote:
> frankly, UFCS mixin would make the use case in the OT bearable.
>
> fun().mixin.writeln is ok
> mixin(fun()).writeln is ugly (esp in more complex cases).
>
> so, is there anything against it despite requiring one to 
> implement it?

I guess there is nothing terrible but also nothing extremely 
useful :) For me second snippet is not any uglier.


More information about the Digitalmars-d mailing list