An Introduction to JS-Ctypes
Andrea Giammarchi
andrea.giammarchi at gmail.com
Sat Sep 17 21:22:25 PDT 2011
On Sun, Sep 18, 2011 at 6:07 AM, Brendan Eich <brendan at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110918/15590452/attachment.html>
More information about the es-discuss
mailing list