4 ms·
At the string literal level doesn't do anything, but the standard library adds an extension method to string called `stripMargin`. This has some nice examples h
by chadrs 6y ago
At the string literal level doesn't do anything, but the standard library adds an extension method to string called `stripMargin`. This has some nice examples https://www.oreilly.com/library/view/scala-cookbook/9781449340292/ch01s03.html https://www.oreilly.com/library/view/scala-cookbook/97814493...
- electrum 6y agoThe indentation is removed at compile time, per the JLS: https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10.6 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.
- Nullabillity 6y agoThat's for Java, the parent is talking about Scala.