Multiline Strings
Claude Pache
claude.pache at gmail.com
Thu Mar 6 23:36:27 PST 2014
We precisely discussed templates on es-discuss tonight. If I believe what I just read on [1], you will be able to write:
foo = `A
Multiline
String`
—Claude
[1] http://www.slideshare.net/domenicdenicola/es6-the-awesome-parts/23
Le 7 mars 2014 à 08:21, Florian Bösch <pyalot at gmail.com> a écrit :
> I'm sorry if that's been asked before (I looked trough the archives trough to 2012 and couldn't find a thread on it).
>
> Are there any plans on adding multiline strings?
>
> Some examples of multiline strings below.
>
> Lua:
> foo = [[A
> Multiline
> String]]
>
> Python:
> foo = '''A
> Multiline
> String'''
>
> Coffeescript:
> foo = '''A
> Multiline
> String'''
>
> Dart:
> foo = ''''A
> Multiline
> String'''
>
> C++11:
> foo = R"bar(A
> Multiline
> String)bar";
>
> Ruby:
> foo = 'A
> Multiline
> String'
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
More information about the es-discuss
mailing list