Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Ignacio Baca Moreno-Torres
IMO, stream API is totally replaceable (almost unnecessary), 80% of your uses cases can be solved with lamdas + Guava FluentIterables, and for advanced use cases libraries like RxJava (or whatever implements reactive streams interfaces) or IxJava are much more advanced and easy to extends. Not sure

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Pablo Nussembaum
Thomas is rigth, using lambdas is are really game changer for subscribing (you have 6 lines less on each one) to handlers and also you can use guava Optional class and functional idioms until idioms until we have fully java8 streams. Be aware that current GWT-2.8.0-SNAPSHOT compiler doesn't supp

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Thomas Broyer
On Monday, June 15, 2015 at 3:49:10 PM UTC+2, Ivan Hetman wrote: > > Thanks, got it. But why don't release special GWT 2.8 version with source > level 1.8 only? Without improved collection API Java 8 benefits in GWT are > low. > You can write lambdas and use defender methods in your own interf

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Ivan Hetman
Thanks, got it. But why don't release special GWT 2.8 version with source level 1.8 only? Without improved collection API Java 8 benefits in GWT are low. четвер, 11 червня 2015 р. 23:59:09 UTC+3 користувач Thomas Broyer написав: > > You cannot use "classic" DevMode with a Java 7 JVM and -sourceL

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-11 Thread Thomas Broyer
You cannot use "classic" DevMode with a Java 7 JVM and -sourceLevel 8, and that includes GWTTestCases (unless run in prod mode); so forcing sourceLevel 8 would mean requiring Java 8, and because of issues with using a Java 8 JDK while targeting a Java 7 runtime JVM, this is not something we can

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-11 Thread Jens
> > > You can compile java even 1.2 source code with JDK 1.8, so what is the > problem with compiling Java 7 source with GWT for Java 8 emulation? > Interfaces also should not be broken because of default methods in > interfaces (that can just be ignored in sourceLevel < 8). Can you give > exa

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-11 Thread Ivan Hetman
Hi Thomas, thanks for the answer. You can compile java even 1.2 source code with JDK 1.8, so what is the problem with compiling Java 7 source with GWT for Java 8 emulation? Interfaces also should not be broken because of default methods in interfaces (that can just be ignored in sourceLevel < 8)

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-11 Thread Thomas Broyer
On Thursday, June 11, 2015 at 2:58:09 PM UTC+2, Ivan Hetman wrote: > > Hi. I used GWT 2.8.0-SNAPSHOT to try it on my projects to reduce > boilerplate code. But I was confused when I tried listeners.forEach() and > compiler said that there is no such method in Set (i. e. Iterable). Also as > i n

GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-11 Thread Ivan Hetman
Hi. I used GWT 2.8.0-SNAPSHOT to try it on my projects to reduce boilerplate code. But I was confused when I tried listeners.forEach() and compiler said that there is no such method in Set (i. e. Iterable). Also as i noticed, default methods or class::method work. But there are no streams, cons