just go in circles.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
see use-before-definition as too problematic,
but there might be factors that I’m not aware of.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss
;
var age = name.create();
var strength = name.create();
*/
// private method
@incAge() {
this.@age++;
}
}
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
Denicola wrote:
Yes, this looks pretty solid, although I can't remember seeing it anywhere.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
proposal over arrow syntax.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
UUIDs are useful for many tasks. One cannot create good ones in JavaScript
without browsers exposing more of the underlying platform. Would it make sense
to add UUID generation to ECMAScript.next? Or is that something for a browser
API?
Axel
--
Dr. Axel Rauschmayer
a...@rauschma.de
home
. But it does illustrate the @name concept.)
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
.
Ironically, with a German keyboard, it is quicker to type this. than it is to
type @.
--
Dr. Axel Rauschmayer
a...@rauschma.de
twitter.com/rauschma
Home: rauschma.de
Blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
“regular” functions
much, anyway.
On Mar 12, 2012, at 5:54 , Brendan Eich wrote:
Axel Rauschmayer wrote:
I like `use fn`, but it’s not yet clear to me how it interacts with modules
(including, possibly, `use module`)
use module;
was withdrawn.
use fn;
is just a pragma to make fn
/178792012215091200
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
keyword, things are easier to parse.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
Not at all. If anything, I have a slight preference for the traditional
solution.
On Mar 11, 2012, at 14:52 , François REMY wrote:
Stunned to read that from someone asking for the arrow syntax, but yes, it’s
right.
From: Axel Rauschmayer
Sent: Sunday, March 11, 2012 2:46 PM
to be
an orthogonal feature.
On Mar 12, 2012, at 4:48 , Allen Wirfs-Brock wrote:
see https://gist.github.com/2015544 for my current thougthts
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
about 'arguments'? Just say no.
/be
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
to learn a new symbol (eg |) or a
new keyword (eg beget)? Long term, does it make any cognitive difference?
Allen
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
, does it make any cognitive difference?
Allen
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog
named property help with
monkey-patching? If there are several of them, it would be impossible to guess
which is which.
Axel
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss
since the [[Prototype]] property is a reference):
let sub = sup + {p:1, q:2};
(E4X ambiguity, no worries.)
Comments?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss
-object of”.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
for intermediate lhs operands.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
OK, forget that. You could still produce left-hand sides...
On Mar 3, 2012, at 17:57 , Axel Rauschmayer wrote:
Speaking of compositions though, I can't recall if it was ever discussed
whether this operator can be chained, and if so, whether it associates. I
don't see too much value
list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
:
MyObject.prototype - {a:1,b:2}
appArrayBehavior-[0,1,2,3,4,5]
let subclass = superclass - function () {};
var p = newRegExpMethods - /[a-m][3-7]/
What do you think? Do you like - better than | ? Is it ok to not have it
available for some possible future function shorthand?
--
Dr. Axel
design be committee – Fred Brooks argues that good design is
best decided by a single person (two, if one of them is dominant). A TC39 vote?
A BDFL decree?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
of programming.
Let me know what do you think about that.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo
them.
Beautiful, no more constructors-as-poor-man’s-namespaces.
All generic methods could be in such modules, with uncurried `this`. But, with
generic methods I’m undecided, they also make sense as “static” methods:
http://wiki.ecmascript.org/doku.php?id=strawman:array_statics
--
Dr. Axel
it be
a switch for all breaking ES.next changes?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
(1JS), both approaches can be
tested in the wild. I’m mostly sold on 1JS, but a few doubts remain, trying out
the BRS clean cut solution for Unicode will either allay or confirm those
doubts.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog
Quote: “Let posInt be sign(number) * floor(abs(number)).”
Why is this variable called “posInt”? It can’t be an abbreviation for “positive
integer”, because it can be negative(?)
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
(and introduce another version of the horror
that is the Array constructor).
With the existence of the spread operator I think that there's a good
argument in favour of the multiple parameters approach.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
functions the constructor is a factory itself
and no need to new
my 2 cents,
br
On Mon, Feb 13, 2012 at 10:01 AM, Axel Rauschmayer a...@rauschma.de wrote:
My suspicion: All these features make sense for the full-blown collections
API, but for sets I’m not sure at which point
__proto__ is used by Zepto.js and other mobile frameworks.
Is it mainly used to create array instances? Would it make sense to push for
Array.create() as quickly as possible, as a shim-able alternative (using
__proto__ on some browsers, being native on others)?
--
Dr. Axel Rauschmayer
:
$ Object.prototype.toString.call(true)
'[primitive boolean]'
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org
interdependencies cases.
Is STL the simplest solution for users?
/be
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
and
Object.setProperty that Allen referred to on the object model reformation
wiki page)
Cheers,
Tom
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es
--
[16:35:38.002] [] + {}
[16:35:38.004] [object Object] // OK
Node.js is better:
$ {} + {}
'[object Object][object Object]'
$ {} + []
'[object Object]'
Oddly, Chrome returns the same results as Firefox (different version of V8?)
--
Dr. Axel Rauschmayer
a...@rauschma.de
block statement.
On Fri, Jan 27, 2012 at 9:47 AM, Axel Rauschmayer a...@rauschma.de wrote:
If I read ECMA-262 right then I would expect + to do the following if its
operands are either {} or []:
- Convert each operand to a primitive via ToPrimitive()
- To do so, first try valueOf() (which
I would still love to get read access to the [[Class]] property in ES.next.
Proposal: A function getTypeName().
- Primitives p: return typeof p (except: null for null)
- Objects o (including functions): return o.[[Class]]
Axel
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
outside of a REPL. Try this variant
function f() {
{;} + {}
}
to more clearly see what is being parsed.
What works for me is closing my left eye. ;-)
http://www.youtube.com/watch?v=46btEgKmCTo
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog
a method such as Array.isArrayLike(), but that might be
jumping the gun and best delayed until there are contracts or something similar.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es
named
elementGet/elementSet methods.
@() could take the place of [] for property access, if we allow string operands.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
that using something else is a must, IMHO.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
) {
}
To me, consistency is much more important than saving characters.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
liked the explicit `this`, especially
compared to Java).
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es
before lines like this.
Consciously?
Sight. Right. Not a good idea, then.
An important consideration is that eliminating `this` will increase the
grawlix-factor of JavaScript (I always liked the explicit `this`, especially
compared to Java).
--
Dr. Axel Rauschmayer
a...@rauschma.de
will be. Object.getProperty(key) might be enough.
[1] http://wiki.ecmascript.org/doku.php?id=strawman:object_model_reformation
[2] http://www.2ality.com/2012/01/roles-objects-arrays.html
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
implementations). For the few
remaining cases, Object.getProperty() (or something similar) should do just
fine.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es
?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
.
Extension names are the constructors of the Extension type.
http://hackage.haskell.org/packages/archive/Cabal/1.6.0.3/doc/html/Language-Haskell-Extension.html
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
() { m.add(alerts[i]) }, (i+1) * 10);
}(i));
}
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es
version of instanceof
might help (as opposed to Function.isFunction, Date.isDate, RegExp.isRegexp
etc.).
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss
(which has been mentioned
many times)? It seems very appropriate and is even easy to type on a Mac
(easier than square brackets on a German keyboard!).
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
):
- Poll people for their opinion
- Search JS code bases for how often the identifier fn is used (how?).
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss
On Jan 19, 2012, at 8:27 , Brendan Eich wrote:
To fix (2), how about reviving arrows and avoiding the non-LR(1) parsing for
grammar validation problem?
Couldn’t one always freeze such a function shorthand and then get syntax such
as:
#(x, y) { x + y }
--
Dr. Axel Rauschmayer
by default be OK for 98% of the cases? If you want
anything else, you can use a traditional function. Then the above syntax as the
only function shorthand would be OK.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
the rejected syntaxes (=
less running in circles) – simply copying emails (such as yours below) there
would probably suffice.
On Jan 19, 2012, at 20:27 , Brendan Eich wrote:
Axel Rauschmayer mailto:a...@rauschma.de
January 19, 2012 9:31 AM
Rationale: wouldn’t freezing by default be OK for 98
of the
binding is the terminating loop control.
Yay (I'm pretty sure).
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
and sharing still being available makes it look like the right
decision.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org
Nice! Related: https://github.com/paulmillr/es6-shim
On Jan 18, 2012, at 8:54 , Andrea Giammarchi wrote:
Somebody may be interested into ES6 Map, WeakMap, and Set
Here my attempt with all explanations:
https://github.com/WebReflection/es6-collections
--
Dr. Axel Rauschmayer
a...@rauschma.de
separation of concerns. This
would solve all of the use cases that I have had so far.
== Typo: defaulValue
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss
a superset of #2 =
subsuming it), but using module as a switch, distinguishing #1 and #2 might be
worth it.
[1] https://mail.mozilla.org/pipermail/es-discuss/2012-January/019195.html
--
Dr. Axel Rauschmayer
a...@rauschma.de
twitter.com/rauschma
Home: rauschma.de
Blog: 2ality.com
that are not
backward-compatible with with ES5.strict” (if those exist, but it seems like
they do).
--
Dr. Axel Rauschmayer
a...@rauschma.de
twitter.com/rauschma
Home: rauschma.de
Blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
it is a useful
feature independent of the language cleanups in carries with it, and because
it doesn't require a noisy opt-in pragma.
So the language has 3 modes in the spec, but in practice only 2 that matter.
Crystal clear now, thanks!
--
Dr. Axel Rauschmayer
a...@rauschma.de
twitter.com
such as do: seem an obvious choice.
--
Dr. Axel Rauschmayer
a...@rauschma.de
twitter.com/rauschma
Home: rauschma.de
Blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
introduce breaking changes? That might be something worth planning for.
Presumably modules will make it easier to encapsulate this kind of change.
--
Dr. Axel Rauschmayer
a...@rauschma.de
twitter.com/rauschma
Home: rauschma.de
Blog: 2ality.com
___
es
;`
special form would be spelled spelled `yield` instead, and as shallow
continuations this style avoids the potential interleaving hazards implied by
your proposal (the inherent run-to-completion violation of fibers).
[1] https://github.com/mozilla/task.js
--
Dr. Axel Rauschmayer
a...@rauschma.de
it (yet).
Claus Reinke’s recount of lessons learned by the Haskell community in this area
also seems relevant:
https://mail.mozilla.org/pipermail/es-discuss/2012-January/019396.html
Axel
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
see if we can identify a translation between well chosen subsets of AMD and
ES.next modules. But even if no good automatic translation is found, code
written to AMD will be more easily ported to ES.next modules than code
written by current web practices.
+1
--
Dr. Axel Rauschmayer
; //[no LineTerminator here]
before with
...
}
};
+1
It might make sense to also introduce an “unlabeled” break-with that exits from
the current (unlabeled) block.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
@Andrea, Mariusz: Are you aware of the RequireJS optimizer [1]? It can be used
together with almond [2], an AMD loader with minimal footprint.
[1] http://requirejs.org/docs/optimization.html
[2] https://github.com/jrburke/almond
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
map values, so I wouldn't be affected. Has anyone else experience in
storing falsy values?
David
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
a...@rauschma.de
home
.
The return statement returns the value that is there if the key existed
in the map or the default value (which has just been assigned).
David
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es
to be stored? Axel, does this add enough value to expand the API by 25%?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org
names. Furthermore, trailing callable parameters are often
self-explanatory.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
semantics with some ES6 features. When would that matter (except while
developing ES6)?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
). Then it should become
clear where/if people miss break and continue. A label is a reasonable
work-around that should even survive the insertion of a “loop-ifying” keyword.
Could we call block lambdas just lambdas? The former seems a bit pleonastic.
--
Dr. Axel Rauschmayer
a...@rauschma.de
think it’s a must-have, but whenever you catch exceptions, you have
similar issues.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https
responsibility,
any more. `continue` as an early return seems less important, because you can
use break as follows:
mycoll.forEach { | x |
block: {
if (x 0) {
break block; // continue
}
// do more with x here
}
}
--
Dr. Axel
idea. With a normal paren call, I don’t see any
problems.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es
expect a function or method call when they see a
parenthesized value.
The following seems like an elegant and easy to understand rule to me:
“The parameters of a function or method call are either parenthesized or
paren-free. In the latter case, all parameters must be lambdas.”
--
Dr. Axel
Cool. I also have a feeling that every paren-free lambda after the first one should have some kind of preceding keyword or name, but I don’t know how one could make that happen. Brace-free object literals? (only half joking)On Jan 15, 2012, at 3:42 , Brendan Eich wrote:
Brendan Eich
I think it’s a valid concern. The idea is: If I can implement my own loops (the nice-looking paren-free syntax feeds that illusion!) then I also want those loops to have break and continue. You could statically determine what construct, say, a break applies to and either throw a BreakException (if
would rather achieve this effect without currying. Following a block with
a non-block doesn’t seem like a good idea.
Has the other approach been considered?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
of it ties into my comments on ECMAScript, so I think it is best
to leave it in the blog post vs. reproducing here. Also, I do not
expect answers to my questions right away, just throwing out things
that would be nice to have answered as part of the final design.
--
Dr. Axel Rauschmayer
for supporting octal literals in strict mode.
/be
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
-decimal literals, for example:
0b1011, 0o732 and 0x.
For long literals, Java has started to make _ as a separator legal, that
would be nice to have, too:
let aLotOfMoney = 120_327_756_228;
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog
On Jan 7, 2012, at 23:22 , Claus Reinke wrote:
But the new plan reminds me strongly of bad experiences in Haskell-land.
That sounds interesting. Is this documented somewhere?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
ES6-only (=ES6-differs-from-ES5.nonstrict)
This might be about to the question as to whether there should be a mode that
combines ES6-differs-from-ES5.strict constructs with ES5.nonstrict. I don’t
think there should be.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter
the understanding of the code that I had so far. I like the
whole-file-or-nothing approach for switching semantics that you proposed.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss
in both ES5 and ES6, but differing semantics.”)
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
world” and then only have two labels. There
are two ways out of this world:
- Non-ES6 environments for implementors: refer to ECMA-262 version 5.1.
- Non-ES6 environments for developers: simulate ES6 (via static compilation,
dynamic compilation, etc.).
--
Dr. Axel Rauschmayer
a...@rauschma.de
and ES5.strict on the other hand. But
it makes sense that even if developers (engine users) are presented with
something simple, implementors have to take care of many more details.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
is carried over to data structures), but not the same
reference.
It’s a shame that we are really close in JavaScript, with the ECMA-262
specification using references.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
that would not solve much 'cause you can bind a function to a single object
and no more.
Isn’t that the most frequent use case? Do you have examples where you bind the
same function to several objects?
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
, JavaScript additionally faces the challenge
that a developer can’t control what language version is implemented by the
browser. How will that be handled? Sketching a solution would provide a more
complete picture of how to migrate to ES6.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home
into ES.next is diverse (E,
Racket, Smalltalk, etc.). Lastly, progress is steady and if ES.next is finished
by 2013 then that is quite impressive. Compare: five years between Java 6 –
with few new features – and Java 7.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com
to bind() a method.
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
or client-side, possibly including caching)? This multi-version
scheme could even be applied to (the JS code embedded in) HTML files.
Axel
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
___
es
601 - 700 of 1092 matches
Mail list logo