Winnie ❎ is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

I wouldn't say I fell in love, but Java 8 streams are quite nice.

But then there are generics...

octodon.social/media/K8etdwvwh

This was the result of trying to concatenate Stream<A> and Stream<B> into a new Stream<A> where B extends A.

Winnie ❎ @winniehell

So I figured I avoid all the hassle by using Stream<A> everywhere and casting into B where necessary.

This makes my clean code heart cry a little.

· Web · 0 · 1