Template strings and templates

C. Scott Ananian ecmascript at cscott.net
Thu Mar 6 18:37:13 PST 2014


How about:
```js
cs = require('coffee-script').compile;
eval(cs`
  gcd = (x,y) -> [x,y] = [y,x%y] until y is 0; x
`);
```
Presumably coffee-script counts as a (large!) DSL.
 --scott


More information about the es-discuss mailing list