3 ms·
This is one of the reasons I don't like Java. I feel like the language gets annoyed with me when I just want a pure function, and goes "fine, i guess i support
by knorker 4y ago
This is one of the reasons I don't like Java.
I feel like the language gets annoyed with me when I just want a pure function, and goes "fine, i guess i support that. Still needs to be in a class though... Because... I like classes"
- Viliam1234 4y agovar f = x -> x + 2; Yes, this is a syntactic sugar for a class. (And the class is a syntactic sugar for machine code.)
- knorker 4y agoStill needs to be in a class, too,