Mark S. Miller (2015-02-04T14:41:13.000Z)
No it should not. "use string" and 'use strict' are specially recognized
syntax. The *only* reason that they reuse the syntax of expression
statements, rather than being, for example,

   use strict;

without the quotes, is so this pragma would be ignored on older pre-ES5
browsers without causing the programs to break. It is not in any meaningful
way string-like.

`use strict` should no more be recognized that should ("use " + "strict").



On Wed, Feb 4, 2015 at 5:49 AM, Leon Arnott <leonarnott at gmail.com> wrote:

> Given that `"use strict"` and `'use strict'` are both valid strict
> pragmas, should `` `use strict` `` in the same position also be regarded as
> a valid strict pragma?
>
> Against:
> * Backtick strings aren't really strings, but a kind of string-related
> function call, and thus are more complex than the "basic" string literals.
> Since "use strict" is such an elemental part of the language, only the most
> basic of structures should be related to it.
>
> For:
> * In the context it's used, it does evaluate to a string (though of course
> strict pragmas are recognised outside of expression validation - hence this
> thread) so is essentially just as much a string representation as the other
> forms.
> * It's reasonable to expect to *mindfully* use the backtick prolifically
> as "the new string delimiter", in the same way that one can mindfully use
> `let` as "the new var", spread as "the new `.apply`" or arrow syntax as
> "the new `function`". Restricting the use of backticks in this common
> string usage seems unwarranted.
>
> Neutral:
> * "use strict" is intended to slowly ebb out of the language as module
> code replaces script code, so it doesn't _really_ matter whether it's
> extended to permit backticks or not.
>
> Thoughts?
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150204/993d5139/attachment.html>
d at domenic.me (2015-02-17T18:02:31.945Z)
No it should not. "use string" and 'use strict' are specially recognized
syntax. The *only* reason that they reuse the syntax of expression
statements, rather than being, for example,

    use strict;

without the quotes, is so this pragma would be ignored on older pre-ES5
browsers without causing the programs to break. It is not in any meaningful
way string-like.

`` `use strict` `` should no more be recognized that should `("use " + "strict")`.
d at domenic.me (2015-02-17T18:02:19.520Z)
No it should not. "use string" and 'use strict' are specially recognized
syntax. The *only* reason that they reuse the syntax of expression
statements, rather than being, for example,

    use strict;

without the quotes, is so this pragma would be ignored on older pre-ES5
browsers without causing the programs to break. It is not in any meaningful
way string-like.

`use strict` should no more be recognized that should ("use " + "strict").