Multiline template strings that don't break indentation

C. Scott Ananian ecmascript at cscott.net
Fri Sep 12 09:59:44 PDT 2014


On Fri, Sep 12, 2014 at 12:35 PM, Brendan Eich <brendan at mozilla.org> wrote:
> With the right primitives (tag in front is function call short hand, you can
> compose function calls as Salvador showed), the usability is fine and the
> core language avoids creature feep.

Agreed, although I *would* like to see something very similar to
Kevin's implementation added to the standard library
(`String.dedent`?), so that a million authors don't reinvent the
dedent function in multiple slightly-different ways.
  --scott


More information about the es-discuss mailing list