caution: bleeding-edge ahead!

Brian Goetz brian.goetz at oracle.com
Sun Jan 18 15:29:43 UTC 2015


> If this will be achieved (and that's a big IF), then may be it can be
> pushed even further to:
>
> IntStream.class == Stream<int>.class

Note that IntStream is not simply the result of "take Stream<T> and 
replace T with int."  It has methods not in Stream (e.g., sum()), and 
some of the specialized methods not only specialize T -> int but things 
like Supplier<T> -> IntSupplier.

So the above equality is even a bigger "if" than you are probably imagining.



More information about the valhalla-dev mailing list