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

Armel Asselin asselin.armel at wanadoo.fr
Fri Jan 19 08:23:41 PST 2007


> On Fri, 19 Jan 2007 17:13:17 +0100 Armel Asselin 
> <asselin.armel at wanadoo.fr> wrote:
>
> AA> in the call: new Function("a", "b", "c",  "return a+b+c"), yes it 
> should be
> AA> equivalent to new Function ("a,b", "c", "return a+b+c").
> AA> ECMAScript is used every day by millions of people
>
> This is sad, I know.
>
> AA> and basically escaping systematically will create other problems: 
> imagine
> AA> that for whatever reason the programmer must Join in several steps
>
> I don't understand why should you do this, sorry. Join() should be a
> simple and safe function. And being safe is more important that being
> suitable for some esoteric uses or compatible with ECMAScript.
I really do not see in which way it is less safe.
BTW is there at least a version of Join without separator? it is very useful 
when you happen to join strings which already have their terminator included 
or when there is no such separator at all (in general when your text was 
broken into small pieces for any reason, such as, data records/payloads, 
parsing...)

Regards
Armel
 






More information about the wx-dev mailing list