Hi,
implicit class RichStringContext(val sc: StringContext) extends AnyVal {
def x(a: Int)(args: Any*) = ???
}
x(3)"..."
Personally I initially resented the idea, but it starts to make sense when you have a lot of similar interpolators: consider that there is not much control over the interpolator namespace, e.g. one can’t rename interpolators using imports. So grouping them and providing parameters might help with pollution.
Any opinions?
Kind regards,
Nick