dcollections 1.0 and 2.0a beta released

Walter Bright newshound1 at digitalmars.com
Fri May 21 22:28:42 PDT 2010


Walter Bright wrote:
> If we can get anywhere close to that level of success with ranges and 
> containers, we should all be well pleased.

Mike Taylor has a phrase for that I think is well-coined: "impedance matching", 
defined as the work necessary to get one library module to work with another 
library module.

One example of bad impedance matching is C++ iostreams' attempt to make a memory 
buffer look like a file. Phobos propagated that mistake in its own streams. A 
better way is to use ranges, where the file is accessed via a range and a memory 
buffer is accessed via a range. Then anything that operates on data is written 
to the range, not a fake file interface.


More information about the Digitalmars-d-announce mailing list