String delimiters [WAS Re: common code patterns]

Alex Tweedly alex at tweedly.net
Mon Aug 14 15:22:05 EDT 2017


If you mean, do I think

put \
"This is part of" &CR& \
"A multi-line string which" &CR& \
"I find much less readable." into temp

is less preferable than

put {{
That's better!
A really readable and short
version that I can deal with.
}} into temp

then, Yes - absolutely.

To be honest, I don't much care whether it's triple-quote (not my 
favourite), or {{...}}, or <<LABEL, or <<~Label, or ..... Just some way 
to avoid the ..." &CR&\

And definitely a bonus to have a way to keep indentation nice (as in 
Ruby's squiggly heredoc).


Alex.


On 14/08/2017 17:25, Mike Kerner via use-livecode wrote:
> So you don't like &CR& ?
Always make me think of K&R - and brings me out in a cold sweat :-)
>
> On Mon, Aug 14, 2017 at 12:00 PM, Mark Wieder via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> On 08/14/2017 03:28 AM, Alex Tweedly via use-livecode wrote:
>>
>>> While we (i.e. you) are thinking about string delimiters, could we PLEASE
>>> have some decent way to do multi-line strings.
>>>
>> Yes, please.
>>
>>
>>> Whether it's like Python's triple-quote
>>>
>> No, please.
>>
>> --
>>   Mark Wieder
>>   ahsoftware at gmail.com
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>





More information about the use-livecode mailing list