Hi,

About the string_repeat strawman
(http://wiki.ecmascript.org/doku.php?id=strawman:string_repeat), 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.

David
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to