←back to thread

620 points tambourine_man | 1 comments | | HN request time: 0.211s | source
Show context
avereveard ◴[] No.43749173[source]
what's the tldr difference between this and .format ?
replies(4): >>43749190 #>>43749387 #>>43749636 #>>43750013 #
1. hk__2 ◴[] No.43749636[source]
It’s on a meta level: instead of formatting the string, it returns an object that contains both the format string and its argument. Library author can then implement whatever format function they want, for example one that escapes the interpolated strings.