How can I do a line break (line continuation) in Kotlin
问题 I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax? For example, adding a bunch of strings: val text = "This " + "is " + "a " + "long " + "long " + "line" 回答1: There is no symbol for line continuation in Kotlin. As its grammar allows spaces between almost all symbols, you can just break the statement: val text = "This " + "is " + "a " + "long " + "long " + "line" However, if the first line of the statement is a valid statement, it won