new Vector.T ( length=..., fixed=... )
It would be helpful for readability to have the types here.
The |Vector| constructor is implementation-defined.
This is misleading. Usually when a standard states that something is
implementation-defined, it means that its semantics are not specified
PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lars Hansen
Sent: Monday, March 03, 2008 12:36 PM
To: es4-discuss@mozilla.org
Subject: ES4 draft: Vector
I enclose a slightly incomplete/rough draft for the Vector class.
Please comment.
--lars
___
Es4-discuss
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jon Zeppieri
Sent: 5. mars 2008 13:04
To: es4-discuss@mozilla.org
Subject: Re: ES4 draft: Vector
I just realized that my message from yesterday about the 'fixed'
property (of the Vector class
On 3/5/08, Lars Hansen [EMAIL PROTECTED] wrote:
So, why a read/write, rather than a read-only, 'fixed' property?
It was my hunch when I designed that feature that code that uses
fixed-length vectors wants to be able to catch errors most of the time,
but also does not want to be stuck in
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jon Zeppieri
Sent: 5. mars 2008 15:52
To: Lars Hansen
Cc: es4-discuss@mozilla.org
Subject: Re: ES4 draft: Vector
On 3/5/08, Lars Hansen [EMAIL PROTECTED] wrote:
So, why a read/write, rather
On 3/5/08, Lars Hansen [EMAIL PROTECTED] wrote:
Note, the Vector class called as a function does not create a new
vector if its input is a vector. The prose is wrong in the draft,
but the code is right.
There probably should be copy() method on the Vector class.
It's identical to a
On Mar 5, 2008, at 5:58 PM, Jon Zeppieri wrote:
On 3/5/08, Lars Hansen [EMAIL PROTECTED] wrote:
Note, the Vector class called as a function does not create a new
vector if its input is a vector. The prose is wrong in the draft,
but the code is right.
There probably should be copy()
On 3/6/08, Brendan Eich [EMAIL PROTECTED] wrote:
What I have wanted in the past is a variable length vector whose
length I can freeze at some point. Akin to sealing an object
completely against mutation, after mutating it into good shape during
its early lifetime.
Sounds like an argument