On Sun, Mar 22, 2015 at 4:47 PM Getify Solutions get...@gmail.com wrote:
So why not just add a sandbox, and ... means to catch error
Other than the `import` / `export` thing I mentioned, for the exact reason
why `eval(..)` and `new Function(..)` are not preferred (which roughly do
the same
On Mar 23, 2015, at 10:42 AM, Jacob Parker jacobparker1...@gmail.com
mailto:jacobparker1...@gmail.com wrote:
I noticed expression closures, as defined below, have been excluded from the
spec.
You may be thinking of the change to make the var's intiialiser, e.g.,
for (var x = i in o) ...
illegal in ES6.
/be
Mark Ethan Trostler wrote:
Howdy,
Is this legal ES6 syntax:
for (var x in [ 1,2,3 ] ) { ... } //?
Can the 'var' be in there? There was alleged talk at some point about
Yes that was it thanks!
Mark
On Mon, Mar 23, 2015 at 8:24 AM, Brendan Eich bren...@mozilla.org wrote:
You may be thinking of the change to make the var's intiialiser, e.g.,
for (var x = i in o) ...
illegal in ES6.
/be
Mark Ethan Trostler wrote:
Howdy,
Is this legal ES6 syntax:
Howdy,
Is this legal ES6 syntax:
for (var x in [ 1,2,3 ] ) { ... } //?
Can the 'var' be in there? There was alleged talk at some point about making
that illegal? Hard to tell from looking at the spec thanks!!
Mark
___
es-discuss mailing
On Mar 23, 2015, at 2:45 PM, Mark Ethan Trostler m...@zzo.com
mailto:m...@zzo.com wrote:
Howdy,
Is this legal ES6 syntax:
for (var x in [ 1,2,3 ] ) { ... } //?
Can the 'var' be in there? There was alleged talk at some point about
making that illegal? Hard to tell from looking at
Allen Wirfs-Brock wrote:
including these, in addition to the existing shorthand syntaxes,
should make the following examples work.
var x = { value: 3, toString() 'string', valueOf() this.value };
class x { constructor { this.value = 3; } valueOf() this.value }
what you show above
Even a function wouldn't scale that well for i18n purpose, 'cause you
should write either a function per language or each language switch
statement per function.
I see current ES6 string templates good for debug purpose only, and not
much else ... maybe English centric developers tools so few,
Mark, is really deadly simple 5 lines of code script which aim is to access
properties without having conflicts with names (using `with(this)`) without
needing SES or anything else in, without needing to change, it's simplified
string templating that works with dynamic strings.
Why do we need
But from the few data points I have, approximately 100% of web
developers, when they first hear template strings are in ES6, think
that means something like Mustache in the standard library. Some
initially try to use the feature that way and get frustrated. I expect
widespread confusion on
On Sun, Mar 22, 2015 at 10:27 AM, Andrea Giammarchi
andrea.giammar...@gmail.com wrote:
the snippet is extremely simplified and just works for 99.9% of cases it's
meant to be used, a way to provide properties via objects within a string
used as template. The string should not be parsed in the
I noticed expression closures, as defined below, have been excluded from
the spec.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Expression_closures
Currently implemented (and deprecated) in Firefox, which hasn't broken
anything by the looks of things.
While
Question: what does the following code snippet log in the last line?
```js
function* gen() {
yield this;
}
let genObj = new gen();
let [_this] = genObj;
console.log(_this === genObj); // ???
```
I’m finding three answers:
1. The spec says [1] that any reference to `this` in a generator
Jason Orendorff wrote:
But from the few data points I have, approximately 100% of web
developers, when they first hear template strings are in ES6, think
that means something like Mustache in the standard library. Some
initially try to use the feature that way and get frustrated. I expect
Question: what does the following code snippet log in the last line?
```js
function* gen() {
yield this;
}
let genObj = new gen();
let [_this] = genObj;
console.log(_this === genObj); // ???
```
I’m finding three answers:
1. The spec says [1] that any reference to `this` in a generator
Is it too late to go back to quasi-literals?
(Joking!)
-Original Message-
From: es-discuss [mailto:es-discuss-boun...@mozilla.org] On Behalf Of Jason
Orendorff
Sent: Monday, March 23, 2015 18:52
To: Mark S. Miller
Cc: Mark Miller; es-discuss@mozilla.org
Subject: Re: Converting strings
On Mon, Mar 23, 2015 at 1:55 AM, Mark S. Miller erig...@google.com wrote:
String templates are not good for templates, these work only for
statically defined code and in place meaning you cannot grab content from a
DB and inject values like names or numbers as you would do with any
templating
17 matches
Mail list logo