On Sun, Sep 18, 2011 at 6:07 AM, Brendan Eich <bren...@mozilla.com> wrote:
> > Binary data does no such thing! The descriptors are per generated > type-constructor, not per instance. > once you define a StructType how do create an instance ? new Point2D({x: 0, y: 0}); or binary data can create instances only through ArrayTypes as shown in your slides ? > > What is wrong with new DefinedStruct(propA = 123, propB = 456); or why > this has not been considered ??? > > I have no idea what that syntax even means. Are you assigning to free > variables in a call to DefineStruct, or showing parameter default values in > the head of a DefineStruct function definition, or what? > is there no proposal to bring named arguments as is for python in JS.next ? function withDefaults(a = 0, b = 0, c = 0) { return a + b + c; } If yes, is there no way to call arguments pythonish way ? withDefaults(a = 1, c = 2) ? This is off topic in any case so no need to discuss it here
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss