On Friday, February 28, 2014 8:50:03 PM UTC+1, Goktug Gokdogan wrote:
>
>
>
>
> On Fri, Feb 28, 2014 at 5:52 AM, Andrés Testi 
> <[email protected]<javascript:>
> > wrote:
>
>> Please, don't adopt Lombok. While it is an interesting project, it is 
>> still a hack. We should wait for java8 compiler plugins, because they are 
>> an official feature and have a lot more probabilities than lombok to be 
>> forward compatible and standardized. Ironically, Reinier Zwitserloot, one 
>> of the authors of Lombok, disagreed with me when I proposed Annotation 
>> Proccessors as replacement for generators, 7 years ago: 
>> https://groups.google.com/d/msg/google-web-toolkit-contributors/2uBiRzMJLgM/v0tX_DXEv6oJ
>>
>> My original intention with this post, was to deprecate a redundant 
>> feature like SourceWriter. While the suggested way to go would be APT (I'm 
>> not really convinced about it), GWT.create() will stay here for years. I 
>> can't see incompatibility between adoption of APT and deprecation of 
>> SourceWriter. Promoting the use of tools like JavaWriter instead of 
>> GWT-only features, is a good sign for developers to go for other options. 
>> Less code to mantain is better.
>>
>
> Deprecating SourceWriter and replacing it with JavaWriter means 
> encouraging our users (and our own code-base) to move out of SourceWriter 
> to JavaWriter. 
> If we decide APT is the way to go then if someone is going to write 
> generator, it should be APT - in that case internally we may use JavaWriter 
> and externally they could use whatever they want (including the JavaWriter).
>

SourceWriter is not incompatible with APT, just like JavaWriter is not 
incompatible with generators. Both take a PrintWriter where they write; 
SourceWriter is string-based with only a few helpers for javadoc and 
indent/outdent, whereas JavaWriter is more "Java oriented" with methods to 
begin/end types, methods, control flow blocks, fields, etc.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to