4 ms·
Isn't possible to generate those like on-demand? That would make those 16k classes availables to use, but present only when you need them.
by _lce0 12y ago
Isn't possible to generate those like on-demand? That would make those 16k classes availables to use, but present only when you need them.
- BrandonM 12y agoIt may be! It would be pretty cool to do something like: import net.mintern.functions.auto.ObjCharToBool; and have the generate-classes stage be able to see that import and automatically generate the requisite interface. Of course, the IDE might not be happy until the first compile, but that seems tolerable. It seems like Project Lombok has some similar issues... I'll have to see how it handles them. That would also allow an arbitrary function signature, though I personally think it starts to be better to write your own @FunctionalInterface for readability reasons once you hit more than 3 arguments.