Re: Negative indices for arrays

2010-11-11 Thread Ash Berlin
On 11 Nov 2010, at 19:30, Dmitry A. Soshnikov wrote: OTOH, negative indices, are even not array indices. I.e. var a = [1,2]; a[-1] = 0; print(a); // 1,2 print(a.length); // 2 From this viewpoint -- for what are they? Seems again, `-n` notations for arrays and strings is useful as a

Re: Object.eq is ready for discussion

2010-09-07 Thread Ash Berlin
On 7 Sep 2010, at 17:18, P T Withington wrote: On 2010-09-07, at 12:02, Brendan Eich wrote: 3. identical If I had a vote, +1 Is there someplace that concisely explains the cost of just fixing `===` so I could understand why that is not a choice? FWIW this sort of naming issue is a

Re: WeakMap API questions?

2010-08-14 Thread Ash Berlin
On 14 Aug 2010, at 07:22, Erik Arvidsson wrote: I have a few questions regarding the WeakMap API. 1. Why isn't there a way to check for presence of a key (using has/contains)? Given that undefined is a valid value it is not sufficient to just return undefined for get Does the standard

Re: WeakMap API questions?

2010-08-14 Thread Ash Berlin
: On Sat, Aug 14, 2010 at 1:01 PM, Ash Berlin ash...@firemirror.com wrote: On 14 Aug 2010, at 07:22, Erik Arvidsson wrote: I have a few questions regarding the WeakMap API. 1. Why isn't there a way to check for presence of a key (using has/contains)? Given that undefined

Re: We need to name EphemeronTable (was: Do we need an experimental extension naming convention?)

2010-07-02 Thread Ash Berlin
On 2 Jul 2010, at 23:17, David Flanagan wrote: Mark S. Miller wrote: However, many objected to ephemeron as obscure jargon. We have not yet settled the name we are giving this abstraction. It is the language of GC implementors, and won't make sense to JS programmers. I'll be happy

Re: [IDEA]: Upgrade String - or introduce data type - to better handle binary data.

2010-06-30 Thread Ash Berlin
On 30 Jun 2010, at 07:11, Tim Smart wrote: With recent ECMAScript taking off outside the browser (not to point at any one implementation, but http://nodejs.org/ is an example), the handling of large arbitrary amounts of text and binary data, is becoming more and more common. Would it

Re: quasi-literal strawman

2010-04-01 Thread Ash Berlin
On 29 Dec 2009, at 16:36, Mike Samuel wrote: 2009/12/28 Waldemar Horwat walde...@google.com: Mike Samuel wrote: That's the case right now, except that to escape a backtick one does $\` instead of \`. Having `\`` not do what I'd expect escaping to do truly surprised me. I thought that

Re: An alternative quasi-literal strawman

2009-12-31 Thread Ash Berlin
On 31 Dec 2009, at 06:12, Mike Samuel wrote: I received some convincing arguments that the original quasi proposal fell short as a DSL scheme. Whether a full-fledged DSL scheme is desired or not, I don't know, but I read up on scheme macros and put together an alternative semantics that I

ES5 Spec Errata

2009-12-23 Thread Ash Berlin
15.10.6.3 RegExp.prototype.test says: Let match be the result of evaluating the RegExp.prototype.exec (15.10.6.3) That should be .2 Only sensible hit for errata page I could see on google as http://bugs.ecmascript.org/report/14 and its not been reported there already. -ash

Re: quasi-literal strawman

2009-12-16 Thread Ash Berlin
On 16 Dec 2009, at 20:21, Mike Samuel wrote: jsont`{$name:html}: a href={$url|html-attr-value}{$anchor|html}/a{default=html}` function jsont(var_args) { var literalPortions = Array.prototype.slice.call(arguments, 0); So if i remember correctly: foo`a${b}c` - foo(a, c')(b); How then

Re: quasi-literal strawman

2009-12-14 Thread Ash Berlin
On 14 Dec 2009, at 22:44, Mike Samuel wrote: http://wiki.ecmascript.org/doku.php?id=strawman:quasis is a strawman for a concrete syntax that enables string interpolation as described in http://wiki.ecmascript.org/doku.php?id=strawman:string_interpolation . So far it's just an uploaded

Re: Presentation on modules

2009-11-07 Thread Ash Berlin
On 7 Nov 2009, at 16:28, ihab.a...@gmail.com wrote: Hi folks, Here is a link to the presentation on modules I gave during the TC39 meeting in Santa Clara, CA yesterday. http://sites.google.com/site/ihabawad/Home/es5Modules-2009-11-06.pdf Cheers and regards, Ihab Slide 10 says Sync, arg

Re: Object Initialiser Extensions Strawman

2009-08-12 Thread Ash Berlin
On 12 Aug 2009, at 19:00, Allen Wirfs-Brock wrote: I'm quite certain that non-enumerable is what is most commonly desired for such method properties. Readonly-ness is certainly more debatable. I'm pretty sure that most programmer, most of the time, when they define a method are not doing

Re: Why decimal?

2009-06-23 Thread Ash Berlin
On 23 Jun 2009, at 17:59, Brendan Eich wrote: On Jun 23, 2009, at 9:28 AM, Ash Berlin wrote: I'd rather it was possible to do operator overloading such that decial or what ever else could be implemented natively (in a self hosting JS) but I can also accept that this (operator overloading

Re: extension modules

2009-06-13 Thread Ash Berlin
On 13 Jun 2009, at 16:10, kevin curtis wrote: Python has a concept 'extension modules' where module can be implemented in c/c++. Also the idea of running native code in the browser has been put forward by Google's native client for running x86 in the client. MS - i think - are researching

Re: Explict Memory Managment

2009-05-22 Thread Ash Berlin
On 22 May 2009, at 16:21, David Semeria wrote: Hi, first post, so please excuse any clumsiness. As a developer of large scale in-browser web apps, I frequently face memory management issues. These issues apply to both managing DOM elements (which I appreciate is beyond the scope of ECMA) but

Re: Operators ||= and =

2009-05-06 Thread Ash Berlin
I don't think ||= and ??= are very difficult to define clearly. Perhaps just a line each in terms of the expanded syntax. I don't think they would add much bloat to engines. Perhaps just better to add them both and move on to discussing classes, lambdas, or processes. a ||= b; a = a || b;

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

2009-03-21 Thread Ash Berlin
Comments inline. On 21 Mar 2009, at 22:16, Luke Kenneth Casson Leighton wrote: 1) lack of integers. i noted this - http://wiki.ecmascript.org/doku.php? id=proposals:numbers - and went thank _god_ for that. hooray. python Long can be emulated by an object, but the lack of integers makes