[wx-dev] Re: wxArray::Join and wxArray::Split
Armel Asselin
asselin.armel at wanadoo.fr
Fri Jan 19 08:42:14 PST 2007
> AA> > I don't understand why should you do this, sorry. Join() should be a
> AA> > simple and safe function. And being safe is more important that
> being
> AA> > suitable for some esoteric uses or compatible with ECMAScript.
> AA> I really do not see in which way it is less safe.
>
> Because it makes it very easy to get wrong results.
just stating "it's less safe because it's less safe" is not what I call an
argument. letting choice is just giving consciousness to the programmer, not
making things less safe.
> AA> BTW is there at least a version of Join without separator?
>
> I'm afraid we completely disagree about the purpose of this function. For
> me Join() should be used to create a string from which an array can later
> be recreated by Split(). It doesn't and shouldn't try to do everything.
> And
> besides, "Join without separator" is really too trivial to speak about.
OK don't care, people will then continue to do their Join as "text =
wxT(""); for (i=0; i<length; +i) text += array[i]", they will still claim
that wx is damn slow, and we here will wonder 'but why do they say that'.
Armel
More information about the wx-dev
mailing list