Generally speaking J2CL seeks to support Java language features and in the process of doing so make use of modern ES6 features. When it comes to the separate topic of making advanced ES6 features (that don't exist in the Java language) available to J2CL users the path for that is via the JsInterop spec.
To be specific: - J2CL currently outputs Closure goog.module()s instead of ES6 modules because no browser yet supports ES6 modules and we like having our output immediately runnable in the browser without a ES6to5 downsampling. When browsers support ES6 modules we are likely to switch. - When/if the Java language provides Decorators/Generators/Async functions we will transpile them - The JsInterop spec does not currently provide sugar for Decorators/Generators/Async functions but it might in a future revision - You can already take advantage of Generators and Async functions (but probably not Decorators) by using JsInterop to expose a JS library to Java where that JS library exposes utility functions for Generators and Async functions On Fri, Nov 13, 2015 at 1:27 PM, Paul Stockley <pstockl...@gmail.com> wrote: > Do you plan on supporting these features in j2cl in the future? > > On Friday, November 13, 2015 at 4:23:21 PM UTC-5, Ray Cromwell wrote: >> >> >> You could probably support Modules via a GWT linker. Generators and Async >> functions could be done by a GWT Generator/Linker combo + BabelJS. There's >> no real plans to support ES6 in GWT, but you could arrange enough hacks >> with Generator/Linker/Library stuff to make GWT 2.x stuff consumable from >> ES6 code. >> >> On Fri, Nov 13, 2015 at 1:21 PM, Paul Stockley <pstoc...@gmail.com> >> wrote: >> >>> A number of the new frameworks (Angular 2, Aurelia) are planning on >>> using ES6 and ES7 features such as Modules, Decorators, Generators and >>> Async functions etc. Are there plans to support these on the 2.x code base >>> or would these only be supported by j2cl in the future? >>> >>> On Friday, October 23, 2015 at 3:13:55 AM UTC-4, Goktug Gokdogan wrote: >>>> >>>> As we are getting close to 2.8 release I wrote a new document that is >>>> concentrating on jsinterop features to be released in 2.8: >>>> >>>> https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit# >>>> >>>> Please share your feedback. >>>> >>>> Thanks, >>>> >>>> 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com >>> . >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/8bed35c0-89a8-44df-8cb1-0ab4b7b73d53%40googlegroups.com >>> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/8bed35c0-89a8-44df-8cb1-0ab4b7b73d53%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 google-web-toolkit-contributors+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit-contributors/b5adb853-08d2-42b1-a69a-fccc2d81004d%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit-contributors/b5adb853-08d2-42b1-a69a-fccc2d81004d%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 google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAFw3gJ-%3DWHGsq--dO7jj825U64iqj_ZNCjU9_P8-hP3T4MYFOw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.