- From: Mike Samuel <mikesamuel@gmail.com>
- Date: Thu, 14 Mar 2013 18:37:57 -0400
- To: Ian Hickson <ian@hixie.ch>
- Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>, Adam Barth <w3c@adambarth.com>
2013/3/14 Ian Hickson <ian@hixie.ch>: > On Thu, 14 Mar 2013, Mike Samuel wrote: >> >> Here's an implementation of Ian's E4H proposal on top of string templates > > It seems to miss one of the most important features in E4H, the > compile-time syntax checking. Yeah. It's not an early error. I still don't understand why that's so important. > (I'm assuming the markup syntax here is much more complicated because of > limitations to current JS, and that if you were to use real string > templates it would be closer to E4H?) Are you referring to the calls used in the test file?: var fragment = e4h( { raw: [ '<><input type="checkbox" checked?=', '/><input type="checkbox" checked?=', '/></>' ], }, true, false ); If so, yes, I manually desugared the example I wanted to write, so the above would be equivalent to var fragment = e4h`<><input type="checkbox" checked?=${true}/><input type="checkbox" checked?=${false}/></>`; in ES+template_strings > -- > Ian Hickson U+1047E )\._.,--....,'``. fL > http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. > Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 14 March 2013 22:38:23 UTC