quasi-literal strawman

Mark S. Miller erights at google.com
Wed Dec 16 14:06:03 PST 2009


On Wed, Dec 16, 2009 at 12:43 PM, Ash Berlin <ash_js at firemirror.com> wrote:

>
> On 16 Dec 2009, at 20:21, Mike Samuel wrote:
>
> > jsont`{$name:html}: <a
> > href="{$url|html-attr-value}">{$anchor|html}</a>{default=html}`
> >
> > function jsont(var_args) {
> >  var literalPortions = Array.prototype.slice.call(arguments, 0);
>
>
> So if i remember correctly:
>
> foo`a${b}c` -> foo("a", "c')(b);
>
> How then are these treated:
>
> foo`a${b}${d}c`
>

foo("a","","c")(b,d)


> foo`a${b}c${d}`
>

foo("a","c","")(b,d)


>
> -ash
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



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


More information about the es-discuss mailing list