Re: JSON.stringify(undefined)

2012-07-15 Thread Tim Smart
Calling JSON.stringify(undefined) is essentially the same as calling JSON.stringify() `null` is a better representation of a 'empty' value. Tim. On Mon, Jul 16, 2012 at 12:57:13PM +0800, Barry van Oudtshoorn wrote: > I would assume that this is because the JSON grammar doesn't include > "undefin

Re: prototype focus

2011-07-01 Thread Tim Smart
I quite the current prototype model we have in ecma5. My only gripes would be that `prototype` to too wordy, and `__proto__` needs to become standard. If you replaced `prototype` with `::` or something everything would be swell. function Parent (name) { this.name = name || this.constructor.DEFAU

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

2010-06-30 Thread Tim Smart
subject. > > /be > > On Jun 30, 2010, at 1:03 AM, Ash Berlin wrote: > > > 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

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

2010-06-29 Thread Tim Smart
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 be fair to make sure that future ECMAScript implementati