r/java •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

594 comments sorted by

View all comments

Show parent comment

1

u/k2718 Jun 12 '24

Ha! Good one.

The Streams API is so much easier to use than Kotlin's mature functional capabilities.

And it's wonderful to make every single value an Optional everywhere in your application rather than explicit nullable types that will allow the compiler to surface potential NPEs.