Rick Waldron wrote:
On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
I like it, it indeed looks very logical, however it's a bit controversial
that we need to create temporary array object to get one that we want.
Is the controversy editorial or
.
Herby
-Pôvodná správa-
From: Rick Waldron
Sent: Tuesday, January 03, 2012 2:21 AM
To: Adam Shannon
Cc: es-discuss@mozilla.org ; Mariusz Nowak
Subject: Re: Suggestion: Array.prototype.repeat
On Mon, Jan 2, 2012 at 5:55 PM, Adam Shannon a...@ashannon.us wrote:
Another thing to think about
until possible) and it really surprised me it
was that much slower. Concat is probably heavily optimized.
Herby
-Pôvodná správa- From: Rick Waldron
Sent: Tuesday, January 03, 2012 2:21 AM
To: Adam Shannon
Cc: es-discuss@mozilla.org ; Mariusz Nowak
Subject: Re: Suggestion
On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
I like it, it indeed looks very logical, however it's a bit
controversial
that we need
, January 03, 2012 2:30 PM
To: Herby Vojčík
Cc: Rick Waldron ; Adam Shannon ; Mariusz Nowak ; es-discuss@mozilla.org
Subject: Re: Suggestion: Array.prototype.repeat
repeatD(10) returns 17 copies, not 10.
On Tue, Jan 3, 2012 at 4:28 AM, Herby Vojčík he...@mailbox.sk wrote:
Hello,
binary ftw. See http
Rick Waldron wrote:
On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
I like it, it indeed looks very logical, however it's a bit
On Tue, Jan 3, 2012 at 9:19 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak
What is the use case for .repeat? Trying to imagine some code where I'd
need it so I can get a feel for how it should work.
On Tue, Jan 3, 2012 at 9:19 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak
Rick Waldron wrote:
On Tue, Jan 3, 2012 at 9:19 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Mon, Jan 2, 2012 at 3:56 PM,
On Tue, Jan 3, 2012 at 10:16 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Tue, Jan 3, 2012 at 9:19 AM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
Rick Waldron wrote:
On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak
is probably heavily optimized.
Herby
-Pôvodná správa- From: Rick Waldron
Sent: Tuesday, January 03, 2012 2:21 AM
To: Adam Shannon
Cc: es-discuss@mozilla.org ; Mariusz Nowak
Subject: Re: Suggestion: Array.prototype.repeat
On Mon, Jan 2, 2012 at 5:55 PM, Adam Shannon
I like it, it indeed looks very logical, however it's a bit controversial
that we need to create temporary array object to get one that we want.
Function (not method) that returns generated array may make more sense,
currently I'm using something like that:
var slice = Array.prototype.slice;
On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
I like it, it indeed looks very logical, however it's a bit controversial
that we need to create temporary array object to get one that we want.
Function (not method) that returns generated array may make more
Another thing to think about is that .repeat (both on String and
Array) will be used a lot in production. So it would make sense for
each solution to be optimized for their specific case. It doesn't make
sense to slow down something as trivial as .repeat()
On Mon, Jan 2, 2012 at 16:51, Michael A.
On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak
medikoo+mozilla@medikoo.com wrote:
I like it, it indeed looks very logical, however it's a bit controversial
that we need to create temporary array object to get one that we want.
Is the controversy editorial or fact, because the following
On Mon, Jan 2, 2012 at 5:55 PM, Adam Shannon a...@ashannon.us wrote:
Another thing to think about is that .repeat (both on String and
Array) will be used a lot in production. So it would make sense for
each solution to be optimized for their specific case. It doesn't make
sense to slow down
16 matches
Mail list logo