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.
Winnie ❎ @winniehell

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

But then there are generics...

octodon.social/media/K8etdwvwh

· Web · 0 · 1

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

@winniehell Basically Java 8 telling you "Please do not push this button again!"

@blinry The button was to run my game. 😢

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.