There is currently no syntactic way to split a string onto multiple lines. It would be nice to have something like this:

s(|"layout out " \r
"long messages " \r
"on multiple lines " \r
"is a nice feature " \r
“to have.”)

Submitted on 28 February 2006 at 14:05

On 4 August 2006 at 12:39 Jira commented:

STR-522, visser:
This would be rather ad hoc. We should consider a more general approach to introducing infix operators, which are needed for arithmetic as well.


On 18 April 2011 at 14:50 Tobi Vollebregt commented:

Since we have string quotations there are some (ugly, but possibly less ugly than concat-strings) workarounds possible:

s(|$[layout out [""
    ]long messages [""
    ]on multiple lines [""
    ]is a nice feature [""
    ]to have.])

s(|$[[[ "layout out "
      , "long messages "
      , "on multiple lines "
      , "is a nice feature "
      , "to have."
    ]]])

And it’s obviously quite good already if you want the newlines in the code to appear in the message too.

s(|$[layout out
     long messages
     on multiple lines
     is a nice feature
     to have.])

On 9 January 2013 at 16:57 Eelco Visser removed tag 0.19

On 9 January 2013 at 16:57 Eelco Visser tagged 0.19M1

On 9 January 2013 at 16:57 Eelco Visser removed tag 0.19M1

On 9 January 2013 at 16:57 Eelco Visser tagged interesting

Log in to post comments