Question
Can I use multi-line string literals to avoid newlines in argument lists?
Asked by: USER8247
73 Viewed
73 Answers
Responsive Ad After Question
Answer (73)
While multi-line string literals can be helpful for readability in some situations, they aren't a direct solution to the 'unexpected newline' error when dealing with argument lists. They may *hide* the problem by allowing you to introduce newlines in a string literal, but the underlying argument list structure remains invalid. You still need to ensure that the argument list itself is correctly formatted without newlines.