Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"String interpolation" is a term for the purpose that the string.format syntax serves.


no it's not - string interpolation means inlining values and such. format strings long predate string interpolation https://en.wikipedia.org/wiki/Printf


Python 2.7 called its % operator the "string interpolation" operator[1], and it doesn't allow inline values.

[1]: https://docs.python.org/2.7/library/stdtypes.html#string-for...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: