On Wednesday, April 6, 2016 at 5:46:49 PM UTC+2, Paul Stockley wrote: > > This is the only way you can create a true object literal equivalent in > JsInterop (i.e. no prototype other than Object) >
The real question is whether (and why) you need "no prototype other than Object", other than for the bloat in the generated JS (and then @JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object") is what you're after, no need for syntactic sugar –moreover if it has approximate naming semantics) Plus: your proposed literal=true as a synonym for isNative=true,namespace=JsPackage.GLOBAL,name="Object", in addition to being misleading, is likely to collide with future proper object literal support, at least as currently proposed in https://docs.google.com/document/d/1DFrC-GtcK7cu6DGxaWCswvb2fai9cnrWPvGcdgsKlBw/edit?usp=sharing (I, for one, quite like the JsStruct; and I'd go as far as making it a special type, without the @JsType(literal=true) at all) -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/ceaf2afa-cdb7-4a77-99f4-5570b75a9d70%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
