4 ms·
This pattern is nice, but it makes a lot of IDE's shit the bed completely. I'd really love to see a stronger relationship between Optional and Stream. Right now
by laxatives 10y ago
This pattern is nice, but it makes a lot of IDE's shit the bed completely. I'd really love to see a stronger relationship between Optional and Stream. Right now using both together is very ugly and the function name space is super fucked up, where there is an Optional.map and a Stream.map and you could have them nested or chained. I think there is some resolution in JDK9 for the latter issue though.
- merb 10y agoYeah actually the most patterns I miss in Java are actually pattern matching and generators. Everything else is actually "fine", I mean the var/val reduce some ugliness but that is just a trivial thing.