I probably just used the wrong search phrases, but I didn’t find it in the docs. I’d like to know if there is a way to divide long content into multiple lines in an Erlang module.
E.g. If I have to assign a long string literal in a C source file, I can split it over multiple lines by appending a “” at the end of each line.
My current workaround for strings is to split the string into multiple strings and concatenate them with “++” like so:
string() -> "Some text ...." ++
"more text to be appended" ++
"even more text".
That works fine for strings, but it’s not a general solution when lines get longer than I would like them to for some reason.