Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for string formatting #7

Closed
rossant opened this issue Dec 7, 2013 · 1 comment
Closed

Add support for string formatting #7

rossant opened this issue Dec 7, 2013 · 1 comment

Comments

@rossant
Copy link

rossant commented Dec 7, 2013

Example:

print("Hello {0:s}".format("world"))
@atsepkov
Copy link
Owner

I have no short-term plans to implement this, since there are a couple solutions for this that already do a better job than I would. One is sprintf library, which works very similar to Python's "foo %s" % "bar" type replacement:

http://www.diveintojavascript.com/projects/javascript-sprintf

Another solution (that works very similar to what you request) is based on MsAjax string and documented in this thread:

http://stackoverflow.com/questions/2534803/string-format-in-javascript

valq7711 added a commit that referenced this issue Sep 25, 2019
* Add test of class extends mod.class

There is es6 bug

* Improved readability

* add some complexity;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants