David Bruant david.bruant at
Tue Mar 22 13:42:07 PDT 2011


About the string_repeat strawman
(, one
alternative solution could be a two argument constructor. Something
like: String(n, pattern). So, for the example in the strawman, it would
be String(3, '*').
In ES5, the String constructors (String and new String) both are
expected to be used with zero or one argument, so using a two argument
constructor should not break the web or people's expectations.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list