[wx-dev] Re: wxArray::Join and wxArray::Split

Armel Asselin asselin.armel at wanadoo.fr
Fri Jan 19 09:18:09 PST 2007


> AA> extremely few people will do the proper reserve( ) call that allows 
> this).
>
> Such people probably would do better to use ECMAScript where everything is
> uniformly slow instead of C++ where you do have to think a little if you
> don't want your code to be too slow.
>
> Sorry but I find it ridiculous that we need special APIs just because
> people are incapable of using reserve() correctly.
ellitism in coding is why so much people now use Java, C# and dozen of other 
languages rather than C/C++. people who code are not all and always 
ultra-geek. and with your O(n^2) happyness I'm pretty sure that coding in 
ECMAScript can well be faster than C++ in this case. just for fun, I'll 
check how many loops are needed to run slower in C++ than in my scripting 
engine.
when you provide API or coding technics which prevent normal people (not 
"incapable" people) from doing wrong, you will just drain more people 
finding that it's easy to do the right thing with your tool/framework...

best regards,
Armel






More information about the wx-dev mailing list