Destructuring equivalent to nullish coalescing and optional chaining operators?

2021-02-25 Thread liorean
destructuring to avoid. -- David "liorean" Andersson ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Re: Proposal: native XML object support.

2019-05-20 Thread liorean
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 +

Re: Break out of non-loops

2017-10-27 Thread liorean
for what I mean. -- David "liorean" Andersson ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Feedback on Iterable Numbers Proposal?

2017-03-11 Thread liorean
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

Re: "Temp" as a var type

2016-03-25 Thread 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

Re: GC/Compile requests, with 3D engine demonstration

2016-03-12 Thread liorean
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

Re: Re: Curried functions

2015-10-16 Thread liorean
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

Re: Re: Curried functions

2015-10-16 Thread liorean
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

Playing with variadric fix point combinators in ES6

2015-04-17 Thread liorean
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

Re: Nailing object property order

2015-04-16 Thread liorean
be grouped by common prefix. -- David liorean Andersson ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Array comprehensions with Spread operator

2015-04-15 Thread liorean
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

Re: Syntax sugar for partial application

2015-04-12 Thread liorean
. -- David liorean Andersson ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Syntax sugar for partial application

2015-04-10 Thread liorean
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

Re: Syntax sugar for partial application

2015-04-09 Thread liorean
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

Re: Supporting feature tests directly

2015-03-25 Thread liorean
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

Re: The global object as the global scope instance object

2012-01-24 Thread liorean
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

Re: ES6 doesn't need opt-in

2012-01-19 Thread liorean
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

Re: Array.prototype.concat result length (ES5.1)

2011-07-18 Thread liorean
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

Re: Array generation

2011-07-10 Thread liorean
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

Re: Bringing setTimeout to ECMAScript

2011-03-18 Thread liorean
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

Re: Property Iteration in JSON serialization

2009-10-15 Thread liorean
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

Re: Operators ||= and =

2009-05-05 Thread liorean
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

Re: In what ways does the following eval regularity break?

2008-10-30 Thread liorean
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

Re: Indirect eval experiment

2008-10-30 Thread liorean
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

Re: return when desugaring to closures

2008-10-15 Thread liorean
; 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

Re: Revenge of the double-curly [Was: return when desugaring to closures]

2008-10-10 Thread liorean
' 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

Encodings

2008-09-27 Thread liorean
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

Arguments and formal parameters aliasing

2008-09-27 Thread liorean
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

Re: Strengthening Function.prototype.toString

2008-09-26 Thread liorean
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

Re: Ye olde arguments argument (was: Topic list - pending changes and issues for the ES3.1 spec)

2008-09-15 Thread liorean
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

Re: Is the following a bug that needs to be fixed for ES 3.1?

2008-09-04 Thread liorean
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

Re: Decimal operator behaviors

2008-08-27 Thread liorean
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

Re: Es-discuss - several decimal discussions

2008-08-24 Thread liorean
. 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