Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Bob Sneidar via use-livecode
I'm at a loss here. What do you mean by multi-line strings besides strings with multiple lines in them? Isn't this already possible?? Bob S > On Aug 14, 2017, at 09:00 , Mark Wieder via use-livecode > wrote: > > On 08/14/2017 03:28 AM, Alex Tweedly via use-livecode wrote: >> While we (i.e. y

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Monte Goulding via use-livecode
> On 15 Aug 2017, at 7:33 am, Monte Goulding via use-livecode > wrote: > > put “foo\ > bar” > > would put: > > foo > bar I had a little play while munching my muesli this morning with adding this to my (probably won’t get in the engine) PR for escaped strings. It was only a few lin

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Monte Goulding via use-livecode
> On 15 Aug 2017, at 5:22 am, Alex Tweedly via use-livecode > wrote: > > put {{ > That's better! > A really readable and short > version that I can deal with. > }} into temp It’s really unlikely we would use { } because one day we will want to implement array literals. You know one time I mes

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Alex Tweedly via use-livecode
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 m

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Richard Gaskin via use-livecode
Bob Hall wrote: >> On Aug 14, 2017, at 6:28 AM, Alex Tweedly 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 rea

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Bob Hall via use-livecode
> On Aug 14, 2017, at 6: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. I find myself in many situations where multi-line strings would make my code so much more reada

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Mike Kerner via use-livecode
So you don't like &CR& ? On Mon, Aug 14, 2017 at 12:00 PM, Mark Wieder via use-livecode < use-livecode@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

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Mark Wieder via use-livecode
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 ahsoftw...@gmail.com ___

String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Alex Tweedly via use-livecode
While we (i.e. you) are thinking about string delimiters, could we PLEASE have some decent way to do multi-line strings. Whether it's like Python's triple-quote, or Perl's heredoc, or just some way to do them without either escaped '\n's or non-embedded CRs. Thanks Alex. On 14/08/2017