multiline strings?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Rinzwind
Enthusiast
Enthusiast
Posts: 708
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

multiline strings?

Post by Rinzwind »

Finally please? With JSON, HTML, etc handling and the WebViewGadget it is a major concatenation hassle (and inefficient if the compiler doesn't treat it well).

Code: Select all

Define test.s = """
line 1
line 2
line 3
"""

or

Define test.s ="
line 1
line 2
line 3
"

or only supported for escaped versions

Define test.s = ˜"
line 1
line 2
line 3
"
And array initialization could also be streamlined as in plain old c...

Any reason not to add these? Concatenation is ugly and error prone.