JS template strings https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings … are shipping in Firefox 34 in two weeks. Can't wait for other browsers to add support too.
@guyzmo I didn't design this spec, but I'm guessing: 1) Because {} comes up a lot in strings and 2) What character would you use instead?
-
-
@bz_moz well, I believe the best way is python's, where you use formats within standard strings https://docs.python.org/3.4/library/string.html#format-examples …. -
@guyzmo Not as flexible as the JS setup in some ways. See <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings#Tagged_template_strings …>. As usual, design tradeoffs.
End of conversation
New conversation -
-
-
@bz_moz For multiline strings, I prefer C syntax, where you could do `var s = "this is" " a single " "string"` so you can indent them nicelyThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.