quasi-literal strawman

Mike Samuel mikesamuel at gmail.com
Fri Dec 18 15:07:45 PST 2009


2009/12/18 Mark S. Miller <erights at google.com>:
>
>
> On Fri, Dec 18, 2009 at 2:29 PM, Mike Samuel <mikesamuel at gmail.com> wrote:
>>
>> 2009/12/17 Brendan Eich <brendan at mozilla.com>:
>> > On Dec 17, 2009, at 8:15 PM, Mike Samuel wrote:
>> >
>> >> That's the case right now, except that to escape a backtick one does
>> >> $\`  instead of \`.
>> >
>> > How about just $` instead?
>>
>> The idea was to have raw strings *and* a way to include arbitrary
>> codepoints without having to put non-ascii text in a file.
>> So $\EscapeSequence is interpreted as the CV of the EscapeSequence.
>>
>> The sequence $` does not have a meaning right now though so that could
>> be done either in-addition to or instead of $\ style escapes.
>> Though, the sequence $\$` encodes the two character string "$`".
>>
>
> What? I was following the rest, but I don't get the last line. Since the
> second $ is $\-escaped, it is simply a literal $, so the following ` is not
> escaped and should end the quasiliteral. Am I confused?

No.  You're right.  I just had a brain fart.


>>
>> > /be
>> >
>
>
>
> --
>    Cheers,
>    --MarkM
>


More information about the es-discuss mailing list