Re: Structs in gobject-introspection + Javascript
- From: "Havoc Pennington" <hp pobox com>
- To: "Dan Winship" <danw gnome org>
- Cc: Owen Taylor <otaylor redhat com>, language-bindings gnome org, Colin Walters <walters redhat com>, lucasr gome org
- Subject: Re: Structs in gobject-introspection + Javascript
- Date: Mon, 10 Nov 2008 09:17:13 -0500
Hi,
On Mon, Nov 10, 2008 at 9:07 AM, Dan Winship <danw gnome org> wrote:
> Another argument against this API is that presumably this would break if
> the user did
>
> request = { width: 100, height: 50 };
>
> instead, which would be pretty non-obvious.
I would think the above is obviously broken? It confuses a reference
with a value, any competent programmer should get that...
(there's no way to make the above work in JavaScript, afaik ... maybe
I'm missing what you're saying)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]