4 ms·
Another java fork like Lombok. But this time the authors didn't take the time to support all java compilers/IDEs, so the situation is even worse. If this is ju
by grashalm 3y ago
Another java fork like Lombok. But this time the authors didn't take the time to support all java compilers/IDEs, so the situation is even worse.
If this is just to highlight the merit of static extension methods with a follow up JEP I am all for it, but please don't advertise this as a feature for production. It's a trap.
- 3cats-in-a-coat 3y agoLombok is not a Java fork.
- grashalm 3y agoWell a language fork. But not a full implementation fork of course. Or would you argue that what Lombok does is part of the java spec? It effectively extends the java spec in non backwards compatible ways.
- rogerkeays 3y agoDo you really think a JEP is worth investing my time in? AFAICT, the Java gods have already made up their minds on extension methods.
- grashalm 3y agoI did some digging on past discussions, and yes, it seems the stars are not aligned for extension methods in standard Java. But tbh, there are some very good arguments against extension methods. Also, some tricky questions about overloading handling and compatibility are lurking in the shadow. But if you have good suggestions on how to fix them, I'd take the time to propose something on an OpenJDK mailing list, maybe you get some support.