Top "String-interpolation" questions

String interpolation is the replacement of defined character sequences in a string by given values.

String interpolation in Swift

A function in swift takes any numeric type in Swift (Int, Double, Float, UInt, etc). the function converts the number …

string swift string-interpolation
ES2015 Babel String Interpolation not working with apostrophe (but does with double quotes)

I am using babel / grunt to learn some ES2015. According to this post there is no real difference in Javascript …

javascript ecmascript-6 string-interpolation babeljs
Interpolation within single quotes

How can I perform interpolation within single quotes? I tried something like this but there are two problems. string = 'text …

ruby string string-interpolation
Does Rust support Ruby-like string interpolation?

In Ruby I could do this. aaa = "AAA" bbb = "BBB #{aaa}" puts(bbb) > "BBB AAA" The point of this …

rust string-interpolation
String interpolation with triple quotes and multiple lines

I'm getting stange results from triple """ quoted strings when using string interpolation and line breaks: val foo = "bar" s"""$foo""" …

scala string-interpolation
Formatting dashes in string interpolation

I have just been checking out the new string interpolation feature in C# 6.0 (refer to the Language Features page at …

c# string-formatting string-interpolation c#-6.0
Is it possible to temporarily disable Python's string interpolation?

I have a python logger set up, using python's logging module. I want to store the string I'm using with …

python string-interpolation
Transform string to f-string

How do I transform a classic string to an f-string? variable = 42 user_input = "The answer is {variable}" print(user_input) …

python python-3.x string-interpolation f-string
Python: format string with custom delimiters

EDITED I have to format a string with values from a dictionary but the string already contains curly brackets. E.…

python syntax format string-interpolation cheetah
How do I format a string with string interpolation in Scala as a fixed width string?

I'm interfacing with a really old system and the file I need to generate needs a field that is a …

scala padding scala-2.10 string-interpolation format-string