Hacker News new | ask | show | jobs
by electrum 2107 days ago
The indentation is removed at compile time, per the JLS: https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.htm...

> Incidental white space is removed, as if by execution of String.stripIndent on the characters resulting from step 1.

The new stripIndent() method is provided as a convenience to developers.

1 comments

That's for Java, the parent is talking about Scala.