std.compress

Walter Bright newshound2 at digitalmars.com
Tue Jun 4 13:20:15 PDT 2013


On 6/4/2013 12:41 PM, Peter Alexander wrote:
> I think this is over-engineering. It's unlikely that an application will need to
> support multiple compression algorithms in the same piece of code, and even if
> it did, it would be trivial to implement this on top of the simple interface
> that Walter is using.

Yup. My experience with abstractions that have no use cases is all the wrong 
things get abstracted. And by my experience, I include every one I've seen other 
people write as well as my own.

My favorite is windows.h. It was originally written for 16 bit Windows, and had 
all kinds of abstractions to make it portable for a future 32 bit Windows. 
Unfortunately, apparently nobody working on windows.h had any experience with 32 
bit code, and the abstractions turned out to be all wrong.


More information about the Digitalmars-d mailing list