Re: for-in evaluation order

2010-12-27 Thread David-Sarah Hopwood
, ...' notation could be misinterpreted as saying that the previous 'props' list is the first element of the new list. It should be something like 'props ++ [...'. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature

Apology (was: New private names proposal)

2010-12-23 Thread David-Sarah Hopwood
On 2010-12-23 06:01, David-Sarah Hopwood wrote: On 2010-12-23 05:08, Brendan Eich wrote: You seem to have problem owning up to mistakes. *I* have a problem owning up to mistakes? https://secure.wikimedia.org/wikipedia/en/wiki/Psychological_projection I'm sorry, that was uncalled for. I

Re: New private names proposal

2010-12-23 Thread David-Sarah Hopwood
and/or non-writable. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Name syntax

2010-12-23 Thread David-Sarah Hopwood
from '.') -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Name syntax

2010-12-23 Thread David-Sarah Hopwood
and as a range operator in other languages is sufficient reason not to use it here. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https

Re: New private names proposal

2010-12-23 Thread David-Sarah Hopwood
[] will be changed at all. (In the proposal to add a @ or .# operator, it isn't.) -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https

Re: New private names proposal

2010-12-23 Thread David-Sarah Hopwood
-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: New private names proposal

2010-12-23 Thread David-Sarah Hopwood
On 2010-12-23 23:55, David Herman wrote: On Dec 23, 2010, at 4:27 PM, David-Sarah Hopwood wrote: We don't know whether [] will be changed at all. (In the proposal to add a @ or .# operator, it isn't.) Hm, this looks like a pretty serious misunderstanding of the private names proposal. I

Re: New private names proposal

2010-12-23 Thread David-Sarah Hopwood
properties as non-Configurable, and marking all data properties as non-Writable.) -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https

Re: New private names proposal

2010-12-23 Thread David-Sarah Hopwood
On 2010-12-24 00:11, David Herman wrote: On Dec 23, 2010, at 5:03 PM, David-Sarah Hopwood wrote: On 2010-12-23 23:55, David Herman wrote: On Dec 23, 2010, at 4:27 PM, David-Sarah Hopwood wrote: We don't know whether [] will be changed at all. (In the proposal to add a @ or .# operator

Re: New private names proposal

2010-12-23 Thread David-Sarah Hopwood
On 2010-12-24 00:39, Brendan Eich wrote: On Dec 23, 2010, at 3:27 PM, David-Sarah Hopwood wrote: On 2010-12-23 21:02, Brendan Eich wrote: On Dec 23, 2010, at 12:11 PM, Mark S. Miller wrote: You've said this apples to oranges thing many times. I just don't get it. You've read the recent

Re: New private names proposal

2010-12-22 Thread David-Sarah Hopwood
On 2010-12-22 07:57, Brendan Eich wrote: On Dec 21, 2010, at 10:22 PM, David-Sarah Hopwood wrote: On 2010-12-21 22:12, Brendan Eich wrote: It's tiresome to argue by special pleading that one extension or transformation (including generated symbols) is more complex, and less explanatory

Re: New private names proposal

2010-12-22 Thread David-Sarah Hopwood
taste. You have willfully assumed bad faith, despite clear explanations. That certainly does leave a bad taste. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing

Re: New private names proposal

2010-12-22 Thread David-Sarah Hopwood
On 2010-12-23 00:40, Brendan Eich wrote: On Dec 22, 2010, at 2:56 PM, David-Sarah Hopwood wrote: What I said, paraphrasing, is that weak encapsulation favours code that doesn't work reliably in cases where the encapsulation is bypassed. Also, that if the encapsulation is never bypassed

Re: New private names proposal

2010-12-22 Thread David-Sarah Hopwood
On 2010-12-23 01:11, Brendan Eich wrote: On Dec 22, 2010, at 3:49 PM, David-Sarah Hopwood wrote: In arguing about this, I have this bait-and-switch sense that I'm being told A+B, then when I argue in reply against B, I'm told no, no! only A!. (Cheat sheet: A is soft fields, B is transposed

Re: New private names proposal

2010-12-22 Thread David-Sarah Hopwood
On 2010-12-23 02:48, Brendan Eich wrote: On Dec 22, 2010, at 6:39 PM, David-Sarah Hopwood wrote: Inspectors can bypass encapsulation regardless of the language spec. The Inspector is written in ES5. How does it bypass soft field strong encapsulation? I meant, obviously, that inspectors

Re: New private names proposal

2010-12-22 Thread David-Sarah Hopwood
On 2010-12-23 05:14, Brendan Eich wrote: On Dec 22, 2010, at 7:49 PM, David-Sarah Hopwood wrote: The constraint that the inspector be written in ES5 seems to be a purely artificial one. All of the commonly used browsers have debugger extensions. Nope, our little startup (mine, MonkeyBob's

Re: New private names proposal

2010-12-22 Thread David-Sarah Hopwood
On 2010-12-23 05:08, Brendan Eich wrote: On Dec 22, 2010, at 7:34 PM, David-Sarah Hopwood wrote: As far as I can see, MarkM has not (at least, not on the wiki) proposed any new syntax in this discussion that had not already been proposed in one of Allen's proposals. Wrong again. Allen did

Strong vs weak encapsulation

2010-12-21 Thread David-Sarah Hopwood
. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Strong vs weak encapsulation [correction]

2010-12-21 Thread David-Sarah Hopwood
On 2010-12-21 08:27, David-Sarah Hopwood wrote: The private names and soft field proposals are similar in the visibility mechanisms they can simulate, but soft fields are slightly more general. In either proposal, visibility can be restricted to a particular lexical scope. In the soft fields

Re: New private names proposal

2010-12-21 Thread David-Sarah Hopwood
only need one, for example: function Point(x, y) { var x = SoftField(), y = SoftField(); this.#x = x; this.#x = y; } (i.e. 'MemberExpression .# PrimaryExpression' or alternatively 'MemberExpression [ # Expression ]') -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com

Re: New private names proposal [repost]

2010-12-21 Thread David-Sarah Hopwood
On 2010-12-21 22:12, Brendan Eich wrote: On Dec 20, 2010, at 11:05 PM, David-Sarah Hopwood wrote: Please retain all relevant attribution lines. Brendan Eich wrote: The new equivalence under private names would be x[#.id] === x.id. You said under private names here, but it should actually

Re: Private names use cases

2010-12-20 Thread David-Sarah Hopwood
such as private fields. I think it is a mistake to emphasize that, since it overspecifies the mechanism. In the soft fields proposal, the fields are not properties, but that makes little or no visible difference to their use. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com

Re: New private names proposal

2010-12-20 Thread David-Sarah Hopwood
On 2010-12-17 06:44, Brendan Eich wrote: On Dec 16, 2010, at 9:11 PM, David-Sarah Hopwood wrote: On 2010-12-17 01:24, David Herman wrote: Mark Miller wrote: Ok, I open it for discussion. Given soft fields, why do we need private names? I believe that the syntax is a big part of the private

Re: New private names proposal

2010-12-16 Thread David-Sarah Hopwood
feature cannot be specified by a fairly simple desugaring to lower-level features, then it's probably not a good feature. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss

Re: Module isolation

2010-01-11 Thread David-Sarah Hopwood
/EvalBreaksClosureEncapsulation -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Module isolation

2010-01-11 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: Brendan Eich wrote: On Jan 10, 2010, at 9:30 PM, David-Sarah Hopwood wrote: Brendan Eich wrote: On Jan 10, 2010, at 1:14 AM, Kevin Curtis wrote: From SecureEcmaScript proposal: 6. The top level binding of this in an evaled Program is not the global object

Re: Module isolation

2010-01-11 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: David-Sarah Hopwood wrote: Brendan Eich wrote: On Jan 10, 2010, at 9:30 PM, David-Sarah Hopwood wrote: Brendan Eich wrote: For many current applications, the frozen |this| object is not necessary or desirable in global code. The essential characteristic of modules

Re: Module isolation

2010-01-11 Thread David-Sarah Hopwood
of adding unilateral language extensions without consulting anyone, and in particular without consulting this list. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing

Re: Module isolation

2010-01-11 Thread David-Sarah Hopwood
Brendan Eich wrote: On Jan 11, 2010, at 4:37 PM, David-Sarah Hopwood wrote: Kevin Curtis wrote: So, FF3.5 has resurrected the sandboxed eval with the second 'global' object parameter - as the closure peeking issue has been fixed. (The second param is a live object rather than a string). I

Re: Module isolation

2010-01-11 Thread David-Sarah Hopwood
Brendan Eich wrote: On Jan 11, 2010, at 10:53 AM, David-Sarah Hopwood wrote: Who said primordial objects are shared between modules? Having separate copies of primordial objects for each module is not sufficient to ensure isolation. If one module has access to some object obj of another

Re: Module isolation

2010-01-11 Thread David-Sarah Hopwood
scratch, not based on what a poorly thought-out vendor extension happens to do. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https

Module isolation

2010-01-10 Thread David-Sarah Hopwood
mean that. If you can mutate primordial objects, then there is no isolation of any module. There may be a reduction in the possibilities for accidental interference between modules, but that should be distinguished from isolation. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com

Re: api mapping

2009-12-27 Thread David-Sarah Hopwood
memo...@googlemail.com wrote: David-Sarah Hopwood wrote at 25th December: and there is no need for a 'link' convenience function to be standardized given that it is a 5-liner in terms of Object.defineProperty Just have a look at the following programming code with *sweet* 5-liners: var

Re: api mapping [correction]

2009-12-27 Thread David-Sarah Hopwood
I forgot the commas in the object literal: David-Sarah Hopwood wrote: function makeGui(doc) { /*const*/ var title = doc.getElementById(title), url = doc.getElementById(url), input = doc.getElementById(input); return Object.freeze({ get title

Re: api mapping

2009-12-25 Thread David-Sarah Hopwood
of Object.defineProperty.) -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: array like objects

2009-12-15 Thread David-Sarah Hopwood
lookup; I don't know where you got that idea. As for implementation, [[Class]] could be derived from some other type tag that gives sufficient information to do such lookup, but [[Class]] by itself is not sufficient. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc

Re: quasi-literal strawman

2009-12-15 Thread David-Sarah Hopwood
language names are very often acronyms, this looks perfectly natural (and I think it looks fine even when the name is not an acronym). -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature

Re: array like objects

2009-12-15 Thread David-Sarah Hopwood
Brendan Eich wrote: On Dec 15, 2009, at 11:18 AM, David-Sarah Hopwood wrote: Brendan Eich wrote: In ES specs and real implementations, internal methods and various corresponding implementation hooks are called based on [[Class]] of the directly referenced object, in contrast. [...] Sorry, I

Re: [[HasOwnProperty]]

2009-12-12 Thread David-Sarah Hopwood
be # • The result of calling the [[GetOwnProperty]] internal method of # proto with argument ToString(j) is not *undefined*. (Incidentally, I don't see any errata for the published standard at http://wiki.ecmascript.org/doku.php?id=es3.1:es3.1_proposal_working_draft.) -- David-Sarah Hopwood

Re: array like objects

2009-12-11 Thread David-Sarah Hopwood
that is not an array index. How and why would that happen? And yes, I'm aware that this usage of Object.prototype.propertyIsEnumerable implies that catchalls must virtualize it in order for a proxy to be able to pass this test :(. Same with Object.getPropertyDescriptor in the above. -- David-Sarah Hopwood

Re: Catch-all proposal based on proxies

2009-12-10 Thread David-Sarah Hopwood
to the next element), it shouldn't be a getter. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es

Re: AST in JSON format

2009-12-08 Thread David-Sarah Hopwood
) is the main motivation for standardizing the format, AFAICS. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org

Re: AST in JSON format

2009-12-08 Thread David-Sarah Hopwood
Breton Slivka wrote: On Tue, Dec 8, 2009 at 3:57 PM, David-Sarah Hopwood david-sa...@jacaranda.org wrote: snip That would however depend on an assessment of whether browser implementors had succeeded in implementing secure and correct ES5-AST parsers (with a mode that accepts exactly ES5

Re: AST in JSON format

2009-12-08 Thread David-Sarah Hopwood
this is validation, not parsing. That's not entirely accurate. In implementing Jacaranda, I estimate the split of effort between validation/parsing has been about 60/40. ECMAScript is really quite difficult to lex+parse if you absolutely need to do so correctly. -- David-Sarah Hopwood ⚥ http

Re: AST in JSON format

2009-12-07 Thread David-Sarah Hopwood
for such applications and for parsers/emitters. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Conflicts between W3C specs and ES5?

2009-12-03 Thread David-Sarah Hopwood
Environment Records. /pedantry -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com signature.asc Description: OpenPGP digital signature ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: ES5 left-to-right evaluation order issues

2009-11-20 Thread David-Sarah Hopwood
Message- From: es5-discuss-boun...@mozilla.org [mailto:es5-discuss-boun...@mozilla.org] On Behalf Of David-Sarah Hopwood Sent: Friday, November 20, 2009 7:18 PM To: es5-disc...@mozilla.org Subject: Re: ES5 left-to-right evaluation order issues Allen Wirfs-Brock wrote: So, the main point

Re: Binary data (ByteArray/ByteVector) proposal on public-script-coord

2009-11-05 Thread David-Sarah Hopwood
-frozen. For Data object's already frozen can return this Data.prototype.frozen - true when frozen, false otherwise. I don't know why we wouldn't just use Object.freeze. It is not unreasonable to require support for the ES5 APIs as a prerequisite for the Data type. -- David-Sarah Hopwood

Re: Binary data (ByteArray/ByteVector) proposal on public-script-coord

2009-11-05 Thread David-Sarah Hopwood
Oliver Hunt wrote: On Nov 5, 2009, at 4:01 PM, David-Sarah Hopwood wrote: Charles Jolley wrote: This looks like a good approach. I wonder if the Data/DataBuilder distinction could be handled better by using the Object.freeze() semantics. Even if the browser does not support freezing

Re: Binary data (ByteArray/ByteVector) proposal on public-script-coord

2009-11-05 Thread David-Sarah Hopwood
Oliver Hunt wrote: On Nov 5, 2009, at 10:14 PM, David-Sarah Hopwood wrote: Oliver Hunt wrote: I disagree here -- i believe mutable vs. immutable data is different from unfrozen and frozen objects [...] Why? What would the hypothetical Data.prototype.freeze do that would be different

Re: getter setter for private objects

2009-11-02 Thread David-Sarah Hopwood
ugly solutions, because the others are nasty? Yes. Here ugly just means verbose and inelegant, whereas nasty means having poorly understood and subtly error-prone consequences. So ugly beats nasty every time :-) - -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com -BEGIN PGP SIGNATURE

Re: AST in JSON format

2009-10-17 Thread David-Sarah Hopwood
} ] ] ] ], [ExpressionStatement, [Call, [VariableProxy, {name:print} ], [VariableProxy, {name:y} ] ] ] ], [EmptyStatement] ] ] 3 -- David-Sarah Hopwood ⚥ http

Re: Strategies for standardizing mistakes

2009-10-13 Thread David-Sarah Hopwood
arbitrary additional inputs depending on the context in which they are used. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: access to Unicode SMP?

2009-10-13 Thread David-Sarah Hopwood
that it has, such as the get/set object literal syntax, are taken unchanged from existing implementation precedent). I hope that such a syntax will be included in Harmony, though, along with more comprehensive Unicode library support. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com

Re: Property Iteration in JSON serialization

2009-10-13 Thread David-Sarah Hopwood
an implementation were to exploit any internal optimizations it has for recognizing objects of the same shape [*], it would indeed have to sort the keys of every instance. [*] Do any common implementations actually do that, other than for packed arrays? -- David-Sarah Hopwood ⚥ http

Dataflow concurrency and promises

2009-09-29 Thread David-Sarah Hopwood
.) -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Web IDL Garden Hose

2009-09-27 Thread David-Sarah Hopwood
... } -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Web IDL Garden Hose

2009-09-27 Thread David-Sarah Hopwood
]], are relatively safe to override, but for others the invariants that the ES spec depends on are quite delicate. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es

Re: Web IDL Garden Hose

2009-09-27 Thread David-Sarah Hopwood
Brendan Eich wrote: On Sep 27, 2009, at 10:41 AM, David-Sarah Hopwood wrote: Brendan Eich wrote: On Sep 26, 2009, at 6:08 PM, Maciej Stachowiak wrote: This may provide a way to implement some of these behaviors in pure ECMAScript. The current proposal does allow [[Construct]] without [[Call

Re: Cross posting madness must stop.

2009-09-27 Thread David-Sarah Hopwood
://www.w3.org/Mail/Request, bounced with error 550 Unrouteable address (state 14). Mark, please forward this. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org

[[Call]] and [[Construct]]

2009-09-27 Thread David-Sarah Hopwood
Maciej Stachowiak wrote: On Sep 27, 2009, at 11:14 AM, Brendan Eich wrote: On Sep 27, 2009, at 10:41 AM, David-Sarah Hopwood wrote: Brendan Eich wrote: On Sep 26, 2009, at 6:08 PM, Maciej Stachowiak wrote: This may provide a way to implement some of these behaviors in pure ECMAScript

Re: ECMA TC 39 / W3C HTML and WebApps WG coordination

2009-09-26 Thread David-Sarah Hopwood
. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: debugging interfaces

2009-08-18 Thread David-Sarah Hopwood
interface for implementations that do want to support this, but I don't think it requires changes to language syntax. A 'runWithMoreDebugInfo(someFunction)' API would suffice. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss

Re: Operator overloading revisited

2009-07-09 Thread David-Sarah Hopwood
-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: extension modules

2009-06-14 Thread David-Sarah Hopwood
details (particularly memory management), and are not suitable for wider use. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: How would shallow generators compose with lambda?

2009-05-28 Thread David-Sarah Hopwood
the check that the lambda is called from the body of the generator function is applied *after* expansion. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es

Re: yield syntax

2009-05-19 Thread David-Sarah Hopwood
. But if (0) yield; sets a new record affecting the nature of the whole function. A more explicit alternative is to require some kind of decoration on the function definition, e.g. (just a straw man): function generator foo() { ... } -- David-Sarah Hopwood

Re: yield syntax

2009-05-17 Thread David-Sarah Hopwood
use was as a formal parameter name, used as a flag not a function). Oh, right. We've been talking at cross-purposes. I assumed that you were suggesting that 'yield' should be contextually reserved. That is what I've been saying couldn't work due to ambiguities. -- David-Sarah Hopwood

Re: Objects for Number, String, Boolean, Date acts like their native counter part

2009-05-17 Thread David-Sarah Hopwood
-- although I bet most JS programmers don't even know that is happening. -- David-Sarah Hopwood ⚥ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Dataflow concurrency instead of generators

2009-05-15 Thread David-Sarah Hopwood
John Cowan wrote: David-Sarah Hopwood scripsit: Then the functionality of a generator can be implemented using a process/thread that extends a list or queue constructed from dataflow variables. Quite so. How, if at all, do these dataflow variables differ from Prolog variables? Prolog

Dataflow concurrency instead of generators

2009-05-14 Thread David-Sarah Hopwood
[I sent this to es5-discuss, when I intended es-discuss. Sorry for the noise for people subscribed to both.] David-Sarah Hopwood wrote: Jason Orendorff wrote: On Thu, May 14, 2009 at 12:25 PM, Mark S. Miller erig...@google.com wrote: Given both shallow generators and lambda, I don't understand

Re: yield syntax (diverging from: How would shallow generators compose with lambda?)

2009-05-14 Thread David-Sarah Hopwood
point, which I think is a separate point from compiler analyzability. Really, no one writes yield(...) in Python, and extra parens hurt (I know RSI sufferers who benefit from lack of shifting in Python and Ruby). Yes, those are separate points that I am not arguing against here. -- David-Sarah

Re: Dataflow concurrency instead of generators

2009-05-14 Thread David-Sarah Hopwood
Brendan Eich wrote: On May 14, 2009, at 4:34 PM, David-Sarah Hopwood wrote: This approach avoids any problems due to a generator being able to interfere with the control flow of its callers. A generator can't interfere with the control flow of its callers. Can you give an example

Re: [Caja] Language-Based Isolation of Untrusted JavaScript

2009-05-11 Thread David-Sarah Hopwood
? (This is unfortunately almost impossible to search for.) -- David-Sarah Hopwood ⚥ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Spawn proposal strawman

2009-05-11 Thread David-Sarah Hopwood
the outer function's scope. -- David-Sarah Hopwood ⚥ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Spawn proposal strawman

2009-05-09 Thread David-Sarah Hopwood
) in the Harmony standard library. -- David-Sarah Hopwood ⚥ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Spawn proposal strawman

2009-05-09 Thread David-Sarah Hopwood
Mark S. Miller wrote: On Sat, May 9, 2009 at 2:32 PM, David-Sarah Hopwood david-sa...@jacaranda.org wrote: [...] but the AST should preserve the associativity defined in the language spec. But which language spec? Again, specs only traffic in observable differences. Since ES5 does

Re: Operators ||= and =

2009-05-06 Thread David-Sarah Hopwood
value effectively introduce another state for a variable to be in, though, since the behaviour is indistinguishable in user code in ES3? It's not indistinguishable; exactly the first arguments.length parameters are present, regardless of whether they are undefined. -- David-Sarah Hopwood

Catchall proposal

2009-05-06 Thread David-Sarah Hopwood
requires an [[InCatchall]] flag on each object.) -- David-Sarah Hopwood ⚥ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Catchall proposal

2009-05-06 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: Brendan Eich wrote: [...] I finally found time to write up a proposal, sketchy and incomplete, but ready for some ever-lovin' es-discuss peer review ;-). http://wiki.ecmascript.org/doku.php?id=strawman:catchalls # Catchalls are sometimes thought of as being

Re: Universal Feature Detection

2009-04-29 Thread David-Sarah Hopwood
then). It would make sense for that to support querying whether a given module is available, its version, and other metainformation about it. -- David-Sarah Hopwood ⚥ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es

Re: Case transformations in strings

2009-03-24 Thread David-Sarah Hopwood
Christian Plesner Hansen wrote: David-Sarah Hopwood wrote: If converting one character to many would cause a problem with the reference to toUpperCase in the regular expression algorithm, then presumably Safari and Chrome would hit that problem. Do they, or do they use different uppercase

Re: Case transformations in strings

2009-03-24 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: Christian Plesner Hansen wrote: David-Sarah Hopwood wrote: If converting one character to many would cause a problem with the reference to toUpperCase in the regular expression algorithm, then presumably Safari and Chrome would hit that problem. Do they, or do

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-24 Thread David-Sarah Hopwood
Waldemar Horwat wrote: David-Sarah Hopwood wrote: I'll repeat my argument here for convenience: A DivisionPunctuator must be preceded by an expression. A RegularExpressionLiteral is itself an expression. (This assumes that the omission of RegularExpressionLiteral from Literal is a bug

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread David-Sarah Hopwood
error that could prompt semicolon insertion. The Note takes care of this. This is not a case where the note applies; it's essentially the same case as given by Eric Suen. My response to him is at http://www.mail-archive.com/es-discuss@mozilla.org/msg01331.html. -- David-Sarah Hopwood

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread David-Sarah Hopwood
, not PrimaryExpression. There is no technical difference (since Literal is only used as one of the alternatives for PrimaryExpression), but it's just common sense that a RegularExpressionLiteral is a literal. -- David-Sarah Hopwood ⚥ ___ Es-discuss mailing list Es

Re: Case transformations in strings

2009-03-23 Thread David-Sarah Hopwood
to toUpperCase in the regular expression algorithm, then presumably Safari and Chrome would hit that problem. Do they, or do they use different uppercase conversions for regexps vs toUpperCase? If the latter, then we should allow that, and probably require it. -- David-Sarah Hopwood

Re: 15.4.4.21 Array.prototype.reduce ( callbackfn [ , initialValue [ , thisArg ] ] )

2009-03-21 Thread David-Sarah Hopwood
methods with callbacks take a 'thisArg' not because it is needed or even useful, but for compatibility, because they already do in existing implementations that provide these functions. -- David-Sarah Hopwood ⚥ ___ Es-discuss mailing list Es-discuss

Re: 15.4.4.21 Array.prototype.reduce ( callbackfn [ , initialValue [ , thisArg ] ] )

2009-03-21 Thread David-Sarah Hopwood
Edward Lee wrote: On Sat, Mar 21, 2009 at 9:50 AM, David-Sarah Hopwood david.hopw...@industrial-designers.co.uk wrote: Why is it better to use 'this' than to simply have the callback function capture the variables it needs? It's nice to be able to consistently refer to the same 'this' from

Re: features for es that would make it a perfect intermediate compiler target

2009-03-21 Thread David-Sarah Hopwood
embedded in a browser that is being used as a compilation target. His post has numerous technical errors (which I'll address separately), but this isn't one of them. -- David-Sarah Hopwood ⚥ ___ Es-discuss mailing list Es-discuss@mozilla.org https

Re: ES3.1 questions and issues

2009-03-18 Thread David-Sarah Hopwood
. I agree completely, and particularly with points 1) and 2). There should be very good reasons to make behaviour unspecified or implementation-defined; here there is not. -- David-Sarah Hopwood ⚥ ___ Es-discuss mailing list Es-discuss@mozilla.org https

Re: name property for built-in functions??

2009-03-11 Thread David-Sarah Hopwood
. The .name property of all function objects would be non-[[Writable]] and non-[[Configurable]]. Whether this is actually needed, I'm not sure, but it has all of the functional and security properties I've seen stated as desirable so far in this thread. -- David-Sarah Hopwood

Re: name property for built-in functions??

2009-03-09 Thread David-Sarah Hopwood
with. I don't see why this is an interaction between 'name' and 'toString'. Isn't this issue independent of whether 'name' is present? -- David-Sarah Hopwood ⚥ ___ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es

Re: name property for built-in functions??

2009-03-07 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: Brendan Eich wrote: The utility of mutable name for anonymous functions is not at issue if we do not define name at all on such functions -- this is the proposal Allen and I were converging on. You can set name on such anonymous, expressed functions to whatever

Re: parseInt and implicit octal constants

2009-02-23 Thread David-Sarah Hopwood
Allen Wirfs-Brock wrote: David-Sarah Hopwood wrote: Herman Venter wrote: I appreciate that this proposal does not try to go all the way on octal. I am not so sure this is a good thing or that it makes the proposal more likely to succeed. I wouldn't be opposed to removing octal entirely from

Re: Object.prototype.link

2009-02-22 Thread David-Sarah Hopwood
will be added, I think, but there is currently no detailed concrete proposal. Some previous discussion: https://mail.mozilla.org/pipermail/es-discuss/2008-November/008159.html -- David-Sarah Hopwood ⚥ ___ Es-discuss mailing list Es-discuss@mozilla.org https

Re: Object.prototype.link

2009-02-22 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: memo...@googlemail.com wrote: I'd like to use link(obj, target). E.g. a = 10; link(b, a); a++; b++; print(b); // output: 12 That would require a catchall mechanism, allowing accesses to nonexistent properties of an object to be handled. It's quite likely

Re: parseInt and implicit octal constants

2009-02-22 Thread David-Sarah Hopwood
a bug for this change to parseInt, with a test case: http://bugs.ecmascript.org/ticket/449. -- David-Sarah Hopwood ⚥ ___ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Am I paranoid enough?

2009-02-21 Thread David-Sarah Hopwood
;-) David-Sarah Hopwood wrote: Suppose that S is a Unicode string in which each character matches ValidChar below, not containing the subsequences !, / or ]], and not containing ( followed by a character not matching AmpFollower). -- David-Sarah Hopwood

  1   2   3   >