Actions
Feature #16779
closedAdd sprintf %q format option
Feature #16779:
Add sprintf %q format option
Status:
Rejected
Assignee:
-
Target version:
-
Description
It would be great to have format option for quoted string for sprintf (like golang sprintf),
it's particularly useful to format log message for example.
Currently we have to do this:
sprintf("%s", some_value.inspect.dump)
I propose to introduce the %q format option which allow to do this:
sprintf("%q", some_value)
Files
Actions