String delimiters [WAS Re: common code patterns]

Bob Hall bob at bobhall.net
Mon Aug 14 12:56:12 EDT 2017


> On Aug 14, 2017, at 6:28 AM, Alex Tweedly via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> While we (i.e. you) are thinking about string delimiters, could we PLEASE have some decent way to do multi-line strings.

I find myself in many situations where multi-line strings would make my code so much more readable. I do a lot of database work and having a multi-line string for defining queries would be great. 

I used to put my queries in custom props (easier to read/modify) but I’m finding now that I’d rather have the definitions in script-only stacks and get them under source control. However, the current method of appending multi-line strings together makes the code difficult to work with and read.

So I’ll +1 this request. I’d lean toward the triple-quote syntax for implementation.

Bob Hall




More information about the use-livecode mailing list