quasi-literal strawman

Mark S. Miller erights at google.com
Fri Dec 18 14:52:05 PST 2009


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?


>
> > /be
> >
>



-- 
   Cheers,
   --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20091218/790759c0/attachment.html>


More information about the es-discuss mailing list