duck!

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Oct 16 07:01:33 PDT 2010


On 10/16/10 2:30 CDT, Christof Schardt wrote:
>> auto d = duck!Drawable(c); // awes
>
> What about "as" ?
>
> auto d = as!Drawable(c);

Nice too, and evokes "to". "to" was a success in spite of the fact that 
it's difficult to talk about (e.g. "Could you use 'to'?" "To what?" 
etc). I still prefer "duck" because it doesn't have this problem.

Speaking of which, it looks like std.conv is a good place to put duck in.


Andrei



More information about the Digitalmars-d mailing list