Re: quasi-literal strawman

2009-12-16 Thread Mike Samuel
2009/12/16 Mark S. Miller : > On Wed, Dec 16, 2009 at 12:43 PM, Ash Berlin wrote: >> >> On 16 Dec 2009, at 20:21, Mike Samuel wrote: >> >> > jsont`{$name:html}: > > href="{$url|html-attr-value}">{$anchor|html}{default=html}` >> > >> > function jsont(var_args) { >> >  var literalPortions = Array.pr

Re: quasi-literal strawman

2009-12-16 Thread Mark S. Miller
On Wed, Dec 16, 2009 at 12:43 PM, Ash Berlin wrote: > > On 16 Dec 2009, at 20:21, Mike Samuel wrote: > > > jsont`{$name:html}: > href="{$url|html-attr-value}">{$anchor|html}{default=html}` > > > > function jsont(var_args) { > > var literalPortions = Array.prototype.slice.call(arguments, 0); > >

Re: quasi-literal strawman

2009-12-16 Thread Ash Berlin
On 16 Dec 2009, at 20:21, Mike Samuel wrote: > jsont`{$name:html}: href="{$url|html-attr-value}">{$anchor|html}{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 t

Re: quasi-literal strawman

2009-12-16 Thread Mike Samuel
2009/12/16 Andy Chu : >>> If you haven't yet read http://www.python.org/dev/peps/pep-3101/ (Advanced >>> String Formatting) I suggest you do - its well worth a read and feels like >>> a possible very javascripty solution. >> >> I have not read it.  Thanks for the link.  It has a good summary of >

Re: array like objects

2009-12-16 Thread P T Withington
On 2009-12-15, at 23:28, Brendan Eich wrote: > Something more like Self, in other words. I still wonder if we can't recover > that lost form, enable prototype-based composition as Tucker wanted, and > banish host objects to the ninth circle of hell, in a future edition. We can dream! :) __

quasi-literal strawman

2009-12-16 Thread Andy Chu
>> If you haven't yet read http://www.python.org/dev/peps/pep-3101/ (Advanced >> String Formatting) I suggest you do - its well worth a read and feels like a >> possible very javascripty solution. > > I have not read it.  Thanks for the link.  It has a good summary of > alternate syntaxes and est