We met with Ray today. We are planning to have it for GWT 3.0 but there are
parts that needs to be fleshed out more before that (e.g. handling of array
literals inside object literals).

On Wed Nov 12 2014 at 4:52:40 PM Cristian Rinaldi <[email protected]>
wrote:

> @Goktug
> some progress in this proposal?
>
> Thanks
>
> El viernes, 7 de noviembre de 2014 22:00:53 UTC-3, Goktug Gokdogan
> escribió:
>
>> Here is an early draft for adding support for JavaScript object literals
>> in GWT JsInterop:
>> http://goo.gl/K2Aygn
>>
>> TL;DR;
>>
>> @JsType(literal=true)
>> class MapOptions {
>>   public double zoom;
>>   public int mapTypeId;
>>   public LatLon center;
>> }
>>
>> MapOptions options = new MapOptions() {{
>>     zoom = 8;
>>     mapTypeId = ...
>>     center = ...
>> }};
>>
>> ​
>> will generate:
>>
>> var mapOptions = {
>>   zoom: 8,
>>   mapTypeId: ...,
>>   center: ...,
>> };
>>
>> ​
>>
>> And details in the document =)
>>
>> Have a nice weekend!
>>
>>  - Goktug
>>
>  --
> 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/e38fc867-a156-4f7b-818c-f081c97d5568%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/e38fc867-a156-4f7b-818c-f081c97d5568%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAN%3DyUA2vAHpsXt0Ns_6V4TQWjLsJB6P_QZrZ0Nw3AHKfAi9mpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to