SafeStringInterp

org.sigilaris.core.util.SafeStringInterp

String-only interpolator that mirrors StringContext.s while avoiding WartRemover's Any wart. By restricting arguments to String*, it preserves the readability of string interpolation without relying on Any.

Attributes

Example
 import org.sigilaris.core.util.SafeStringInterp.*
 val hex: String = "deadbeef"
 val msg: String = ss"non empty remainder: ${hex}"
Source
SafeStringInterp.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension (inline sc: StringContext)
inline def ss(inline args: String*): String

Interpolates String arguments using the underlying StringContext.

Interpolates String arguments using the underlying StringContext.

Value parameters

args

string values to be inserted into the context

Attributes

Returns

the interpolated string

Source
SafeStringInterp.scala