Simple string interpolation.
This allows "%(...)" inside a string literal to interpolate the stringified result of an expression. It doesn't support custom interpolators or format strings, but we can consider extending that later.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
System.print("\"") // expect: "
|
||||
System.print("\\") // expect: \
|
||||
System.print("(\n)") // expect: (
|
||||
// expect: )
|
||||
// expect: )
|
||||
System.print("\%") // expect: %
|
||||
|
||||
// TODO: Non-printing escapes like \t.
|
||||
|
||||
Reference in New Issue
Block a user