std.algorithm.remove and principle of least astonishment

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Oct 16 12:51:23 PDT 2010


On 10/16/2010 01:39 PM, Steven Schveighoffer wrote:
> I suggest wrapping a char[] or wchar[] (of all constancies) with a
> special range that imposes the restrictions.

I did so. It was called byDchar and it would accept a string type. It 
sucked.

char[] and wchar[] are special. They embed their UTF affiliation in 
their type. I don't think we should make a wash of all that by handling 
them as arrays. They are not arrays.


Andrei


More information about the Digitalmars-d mailing list