I understand the purpose of GWT, but I wonder if I can use it to compile several functions from Java to JavaScript, to make sure that I do not need to support the same code in two different languages.
Or will GWT bring too many library support / support resources to make this a smart choice?
For future projects, I have the same question about Script # (C # compiler).
Followup:
Script # seems to create very readable JavaScript from C # (pages 35-51 have examples of C # code and generated JS code).
I found out that there is a flag -STYLEto make the GWT output โbeautifulโ or even โverboseโ. I still don't know if the emitted JS relies on large libraries or if there are other "gotchas".
source
share