102 ms·
And what difference has the lack of lambda's really made? I cant stand these "my language is better than your language" debates. Use whatever one makes sense f
by skippy81 14y ago
And what difference has the lack of lambda's really made?
I cant stand these "my language is better than your language" debates. Use whatever one makes sense for the job (or, in the case of the enterprise, you can hire enough of).
- bickfordb 14y agoThe difference is readability and developer efficiency. the non-lambda version in the example is four times the size of the lambda version. I don't know about you, but I can only fit about thirty lines of source code in my brain at once. Virtually every other modern programming language has a lambda, it's good to see Java catch up. This isn't about Java versus any particular language.
- majormajor 14y agoWhen it comes to how much code you can keep in your head, do you really keep the boilerplate there? Whenever I've used Java and had to attach an ActionListener or whatever, I don't think of it as being an anonymous class with a single method, I think of it as just the logic in the method when I'm reasoning about the program. It is a pain to write if you don't like having to let the IDE do everything for you, though.
- alinajaf 14y agoDo you mean to say that one language can't be objectively better than another?