• Post Reply Bookmark Topic Watch Topic
  • New Topic

lambads and oops  RSS feed

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Java 8 adding lambdas will it pollute the java code with functional programming constrcutors. Author, can you please provide your views.
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Pollute" or "greatly simplify". It's a matter of opinion.

In those languages that do support it I find them to be a great tool, but like any tool you can misuse them if you really try.
 
Mike. J. Thompson
Bartender
Posts: 689
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it will greatly change the way I code or make things less OO. I already use anonymous classes a lot and so have been passing around functionality as data for some time. Lambdas will just reduce the boilerplate required to do that and will make the code more expressive.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!