Re: Selective String Interpolation

2006-02-19 Thread Jonathan Lang
Brad Bowman wrote: > I don't like the idea of sharing the adverb between escaping and > force-interpolating since stacking other adverbs can turn q into qq > and vice-versa. That's a minor quibble though. And a reasonable one as well. I was trying to minimize the proliferation of adverbs, but I

Re: Selective String Interpolation

2006-02-19 Thread Brad Bowman
On 19/02/06 03:48, Jonathan Lang wrote: I don't see why you'd need a universal anti-backwhack, any more than you need universal quote delimiters. Here-docs are usually safe to quote any amount of line noise, but I take your point. I could see introducing

Re: Selective String Interpolation

2006-02-18 Thread Jonathan Lang
Brad Bowman wrote: > Jonathan Lang wrote: > > Let me see if I understand this correctly: Instead of interpolation > > being enabled by default with backwhacks selectively disabling it, you > > want something where interpolation is disabled by default with > > "anti-backwhacks" selectively enabling

Re: Selective String Interpolation

2006-02-18 Thread Brad Bowman
On 18/02/06 12:23, Jonathan Lang wrote: Piers Cawley wrote: And backwhacking braces in generated code is *not* a pretty solution to my eyes. I'd *like* to be able to have a quasiquoting environment along the lines of lisp's backquote (though I'm not sure about the unquoting syntax): Let me s

Re: Selective String Interpolation

2006-02-18 Thread Brad Bowman
On 18/02/06 07:49, Damian Conway wrote: There is already a mechanism for this. You simply turn off all variable interpolation, and interpolate any the variables you wish to interpolate via block interpolations. Or, more simply, only turn on block interpolation in a non-interpolating string:

Re: Selective String Interpolation

2006-02-18 Thread Jonathan Lang
Piers Cawley wrote: > And backwhacking braces in generated code is *not* a pretty solution > to my eyes. I'd *like* to be able to have a quasiquoting environment > along the lines of lisp's backquote (though I'm not sure about the > unquoting syntax): Let me see if I understand this correctly: Ins

Re: Selective String Interpolation

2006-02-18 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes: > Brad Bowman asked: > >> When building code strings in Perl 5 I usually write the code, >> then wrap it in double quotes, then "\" escape everything light blue >> under syntax highlighting. I was wondering if there'll a better >> way in Perl 6. I thought

Re: Selective String Interpolation

2006-02-17 Thread Damian Conway
Brad Bowman asked: When building code strings in Perl 5 I usually write the code, then wrap it in double quotes, then "\" escape everything light blue under syntax highlighting. I was wondering if there'll a better way in Perl 6. I thought it would be nice to define the variables you wish to

Selective String Interpolation

2006-02-17 Thread Brad Bowman
Hello, When building code strings in Perl 5 I usually write the code, then wrap it in double quotes, then "\" escape everything light blue under syntax highlighting. I was wondering if there'll a better way in Perl 6. I thought it would be nice to define the variables you wish to interpolate