3 ms·
It's a big step up, but man, I really wish Java would introduce extension methods. The streams API starts to get clunky if you need to add any functionality tha
by bunderbunder 9y ago
It's a big step up, but man, I really wish Java would introduce extension methods. The streams API starts to get clunky if you need to add any functionality that they didn't think to include in the core implementation. (zip and mapi, for example.)
- lokedhs 9y agoHave you considered Kotlin? It does address specific pain points of Java, such as extension methods. That said, I personally don't think Kotlin went nearly far enough, and some of their design decisions are questionable but if need to be in the Java ecosystem it's a nice choice.
- bunderbunder 9y agoKotlin's great, but that's a battle I'm just not willing to spend much social capital on. I'm also, let's face it, pretty jaded at this point. Lack of extension methods makes for code that's less clean-looking than I'd like it to be, but otherwise it's NBD. There are plenty of other language features that I straight up bang my head on that I'd like to see change first. Most of them are ones that affect Kotlin every bit as much as they affect Java.