On Wed, Oct 5, 2011 at 11:45 AM, Axel Rauschmayer <a...@rauschma.de> wrote:
> Is this worthy of ES.next support? Or does it belong into a library? > > The two concatenation approaches I know of are: > 1. via += > 2. push() into an array, join() it after the last push() > > (1) can’t possibly be efficient, Huh? Engines have optimized the hell out of 1 by essentially doing 2 under the hood. Even rhino's about a land a patch to do just that. > but if (2) is OK on all(!) platforms, then a library would be OK. However, > given how frequently this is used, I would like this to become part of the > standard library. > What exactly do you want supported?
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss