Ticket #1237 (closed enhancement: fixed)
String.prototype.format should accept arbitrary number of arguments
| Reported by: | FND | Owned by: | JeremyRuston |
|---|---|---|---|
| Priority: | trivial | Milestone: | 2.6.1 |
| Component: | core | Version: | |
| Severity: | trivial | Keywords: | |
| Cc: |
Description
Rather - or in addition to - passing an array of substrings to the format method, it would be useful (less noisy) to be able to pass an arbitrary number of string arguments:
"%0 - %1: %2".format(["foo", "bar", "baz"]);
vs.
"%0 - %1: %2".format("foo", "bar", "baz");
Change History
Note: See
TracTickets for help on using
tickets.
