A fast version of the raw string interpolator.
A fast version of the raw string interpolator.
It inserts its arguments between corresponding parts of the string context.
As opposed to the fs
string interpolator, this one does not treat
standard escape sequences as defined in the Scala specification.
A fast version of the simple string interpolator (s"" literal).
A fast version of the simple string interpolator (s"" literal).
It inserts its arguments between corresponding parts of the string context. It also treats standard escape sequences as defined in the Scala specification.
If a parts
string contains a backslash (\
) character that does not start
a valid escape sequence, then compilation error will be reported.
Implicit class that introduces
fs
andfraw
string interpolators which are high-performance 100% compatible drop-in replacement of simple & raw string interpolators (s"" or raw"" literals).Here's an example of usage:
It will print 2 strings:
Let we have defined functions:
def f(): Int
anddef g(): Double
, then in compile-time forfs"a${f()}bb${g()}"
the following code will be generated: