Gerard Gauthier wrote: lambda's are a nice convenience for the everyday programmer but their features are rarely explored or used to the extreme.
Gerard Gauthier wrote:I think you missed the point, even when that point was mentioned in the post.
The difference between a good programmer and a exceptional programmer is, the exceptional programmer knows where the boundaries are.
Gerard Gauthier wrote:I decided to post a contrived lambda example to show the Java rookies what can be achieved with this simple idea.
This posting was not a tutorial on lambdas, this posting was demonstrating the mind blowing concepts that are possible with lambdas and closures. If you come away from this post shaking your head in bewilderment... Then the post did its job.
Martin Fowler wrote:Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Steven Fraser wrote:My brain exploded.
Ana Yo wrote:Is it becuase the x will always restart to 3 in the else statement?