destructuring to avoid.
--
David "liorean" Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
You could already do something like this:
let
RawXML=xml`some
content`
,XMLApplication=rss`
RSS Title
This is an example of an RSS feed
http://www.example.com/main.html
Mon, 06 Sep 2010 00:01:00 +
Sun, 06 Sep 2009 16:20:00 +
for what I mean.
--
David "liorean" Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
be important to make sure we can
>consider it for ES5, somehow.
And
https://web.archive.org/web/20160425221208/http://wiki.ecmascript.org/doku.php?id=discussion:slice_syntax
The combining of these two features would be a match made in heaven,
and be able to provide Ranges.
--
David "liorean
On 24 March 2016 at 14:40, Brian Barnes wrote:
> That's a good point, "temp" would be a bad keyword.
Actually I think "temp" could be used with very little in the code
break way. Why? Because it wouldn't be a single keyword construct.
There are only a very few cases that are
t;memory" is only mentioned three places in the entire
ECMAScript 2015 spec, and "garbage collection" only once.
--
David "liorean" Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
ow I had to deal
with rest arguments there, because without two different versions, I
would have to choose either to handle rest arguments always with a
separate application, or never. If you want partial application,
that's slightly different in a few ways, but
On 17 Oct 2015 04:48, "Yongxu Ren" wrote:
>
> How about we use a different approach?
>
> Instead of allowing ```a(b)(c)``` for ```let a = (b,c) => b+c;```,
>
> Maybe we can use ```a(b,c)``` for ```let a = b => c => b + c```?
Would that do any of the useful stuff you could
I wrote one, though there is really no
original work involved except for direct transposition. If anyone
wants to program without variables ;) here's a helper for you-
http://lpaste.net/130856 or http://www.es6fiddle.com/i8laijui/
--
David liorean Andersson
be grouped by common
prefix.
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
variants
work, though I'm not bored enough to continue this exercise any
longer.
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
.
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
On 9 April 2015 at 16:11, Jussi Kalliokoski jussi.kallioko...@gmail.com wrote:
On Thu, Apr 9, 2015 at 4:04 PM, liorean lior...@gmail.com wrote:
Do we really need it?
Your «foo(1, ?, 2);» is equivalent to «a=foo(1,a,2)».
Your «foo(?, 1, ???);» is equivalent to «(a,...b)=foo(a,1,...b)».
Your
want to overload it here for a nullary
operator/special form, when we have as low overhead syntax as we
already do in fat arrows for doing the exact same thing?
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https
As I see it, what might be more desireable than a straight shallow feature
test or feature support reporting feature would be an official versioned
test library, possibly including tests of pure internals, and a new
standard api for asking the engine for the results it gets for running a
certain
to know how it could work.
Since let is new syntax anyway, why not add a syntactical way of doing
the definition conditionally?
let varname if absent = value;
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https
a fallacy of equivocation. The
localisation when reading from or writing to a property is a matter of
the value contained in that slot. The access or write permission of
that property is a matter of the actual slot.
--
David liorean Andersson
___
es
Number type into the
limitations of those other number types, into an output of Number
type.
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
a reasonable value to store to tell just that. The
undefined value is by analogy the value that represents no value, so
is the only value that should be a no element.
But that might be just my way of thinking about and distinguishing the
not-a-something special cases.
--
David liorean Andersson
vary. A
server side host might not want to have to deal with asynchronous
activity at all, for instance.
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
with knowledge of how the object looked at the
time of the deleting/removing of a property. IIRC the properties
present on the object before the delete got shuffled to the end of the
enumeration order.
--
David liorean Andersson
___
es-discuss mailing list
es
introduce another state for a
variable to be in, though, since the behaviour is indistinguishable in
user code in ES3?
--
David liorean Andersson
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
statement?
That should cover current usage of eval except for the case of wanting
to inject variables into the scope. Which would mean dropping eval in
strict mode isn't that awful an idea.
--
David liorean Andersson
___
Es-discuss mailing list
Es-discuss
2008/10/30 Mark S. Miller [EMAIL PROTECTED]:
function foo(a, b, c) { return b(c); }
foo(3, eval, 'a'); // yields 3
Doesn't work in Opera, and IIRC ES3 has it that the engine does not
need to allow this kind of use of eval at all.
--
David liorean Andersson
;
Same goes for
a=lambda
{...}
or
a=lambda(...)
{...}
(...)
or any number of similar plays with the semicolon insertion rules.
--
David liorean Andersson
___
Es-discuss mailing list
Es-discuss@mozilla.org
https://mail.mozilla.org
'
This would be broken by the Harmony design. On the other hand, the
other browsers will result in 'else-path' in the current situation.
(Is this a change in Safari? Unless I'm misremembering the results
last time bundled Safari with Mozilla on this one.)
--
David liorean Andersson
Hello!
Just wondering if anybody has any real world data lying around
covering what character encodings are necessary to support real world
script content. UTF-8, UTF-16 and ISO-8859-1 are a given guess. What
else?
--
David liorean Andersson
___
Es
the last argument
corresponding to any given formal parameter identifier with the
corresponding variable, even though these are supposed to be the same
variable.
Something to address in ES3.1, given at least three, probably four
implementors disagree with the ES3 spec?
--
David liorean Andersson
2008/9/26 Erik Arvidsson [EMAIL PROTECTED]:
I know that Opera on mobile phones used to return a string
representation that did not reflect the original.
On Fri, 26 Sep 2008 19:58:27 +0200, liorean [EMAIL PROTECTED] wrote:
Yeah. Opera Mobile returned [ECMAScript code] or [ecmascript
code
useful in some situations, particularly for debugging.
--
David liorean Andersson
___
Es-discuss mailing list
Es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
of the automatic semicolon
insertion mechanism, it's also an incompatible one.
Can/should this be fixed for 3.1?
Doesn't sound like something for 3.1, and I wouldn't want to see it in Harmony.
--
David liorean Andersson
___
Es-discuss mailing list
Es
of tables:
http://intertwingly.net/stories/2008/08/27/estest.html
I would be interested in seeing some tests covering the behaviour of
negative infinity and negative zero as well (for comparison with the
binary double equivalents's behaviour).
--
David liorean Andersson
. Which is not the
case for ECMAScript.
--
David liorean Andersson
___
Es-discuss mailing list
Es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
33 matches
Mail list logo