5
Zu meiner Überraschung das nicht funktioniert -Symbolische Namen für String-Interpolation
implicit class LambdaContext(val sc: StringContext) extends AnyVal {
def λ(args: Any*) = args
}
scala> λ"λx.x"
<console>:1: error: ';' expected but string literal found.
λ"λx.x"
Obwohl es eine gültige Methode Name ist:
scala> new LambdaContext(new StringContext("λx.x")).λ()
res1: Seq[Any] = List()
nicht sicher, ob es ein Fehler oder eine einfache Einschränkung ist.