-
Notifications
You must be signed in to change notification settings - Fork 156
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 printf function #731
Comments
The problem in directly porting Go's
I don't like the idea of |
I just ran across this issue while trying to format a date. While you probably also need a date-specific format function, how would you feel about at least defining the simpler function of
to allow sprintf'ing a single number? Or even just sprintf with a single-type array would still be super useful (though harder to justify, I think). While sprintf can also be used on strings, I feel like 90% of the use cases would be covered by sprintf on numbers. The problem with the |
This issue has had no recent activity and will be closed soon. |
This hasn't been completed and is still needed |
From ifql created by nathanielc : influxdata/ifql#316
Possible function signature
printf = (fmt, args={}) => ...
wherefmt
is the format string and args is an object of values to format.The text was updated successfully, but these errors were encountered: