3 ms·
Agreed that the whitespace elision is overly complex and too prescriptive for a small issue. Either whitespace is important or not; if not it doesn't matter so
by vii 6y ago
Agreed that the whitespace elision is overly complex and too prescriptive for a small issue. Either whitespace is important or not; if not it doesn't matter so there should be no special handling, and if it does - the special handling is very confusing.
Scala has stripMargin, integrated into IntelliJ to explicitly indicate how to dedent the text block. Kotlin has trimIndent.
Anything that takes this long to explain should not be a core language feature.