Surprising line continuations in Scala 3

Thanks for the link, that was the discussion I was looking for.

I’d forgotten this one:

Note that “Odersky interpolation” syntax doesn’t work as leading infix:

def y = "a "+ b +" c"
def y =
  "a "
+  b
+" c"

The aborted tweak for unary is at this PR. The discussion was Functional Syntax?

I commented on the PR that I liked the space rule and would have volunteered a weekend to backport it. Come to think of it, “Odersky interpolation” syntax also relies on a space rule of a kind, where +"c" is neither positive nor detached but infix. I’m not sure how to formulate that rule.

Looking back, I see the use case for operator in column 1 was:

Under such a rule, the + could be in column 1, which looks like a weird DSL for diff.

  def y =
    "a"
+   "b"
-   "c"