[squeak-dev] Re: [vwnc] Does anyone have a "new" string literal?

Eliot Miranda eliot.miranda at gmail.com
Fri Feb 1 21:52:18 UTC 2013


On Fri, Feb 1, 2013 at 10:44 AM, Colin Putney <colin at wiresong.com> wrote:

>
>
>
> On Fri, Feb 1, 2013 at 10:28 AM, Eliot Miranda <eliot.miranda at gmail.com>wrote:
>
>
>> David Leibs has been pushing a well-thought-through facility he calls
>> (and other systems name) "quasi-quote".  Here, a string literal contains
>> escape sequences, a little like printf, that allow one to substitute
>> values.  Dave's syntax uses square brackets to escape into Smalltalk.
>>
>
> That's certainly a useful construct, but I don't think it addresses
> Terry's problem. He wants a string literal that can include $' and CR
> without escaping. Something like HEREDOC or Python's triple-double-quote
> string literals.
>

If I had a brain I would have remembered the syntax and hence that it does
address Terry's point.  The quote character for quasi-quote is ` (back
tick), so single ticks are literal inside a quasi-quote.
 <blush>Sorry</blush>

>
> Colin
>
>
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130201/6ba4e0ca/attachment.htm


More information about the Squeak-dev mailing list