std.compress

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jun 4 13:47:53 PDT 2013


On 6/4/13 2:46 PM, Walter Bright wrote:
> On 6/4/2013 11:43 AM, Timothee Cour wrote:
>> writing generic code.
>> same reason as why we prefer:
>> auto y=to!double(x) over auto y=to_double(x);
>
> The situations aren't comparable. The to!double case is parameterizing
> with a type, the compress one is not. Secondly, compress(lzw) does
> ABSOLUTELY NOTHING but turn around and call lzw. It adds nothing.

Not absolutely nothing. Almost nothing. The distinction is important.

Andrei




More information about the Digitalmars-d mailing list