small medium large xlarge

24 Nov 2015, 08:43
Amod M (2 posts)

Hi Venkat,

First of all, I would like to mention that I have enjoyed reading your book.

I had a small doubt. Please refer Chapter 6 Lazy Evaluations. 1. Here it is mentioned that “..compiler evaluates lambda expressions/method references in the argument list at the called location. The invocation of these, however, is postponed until they are explicitly called from within the methods they’re passed to.

  1. But while explaining lazyEvaludator, it is mentioned that “..if we pass two calls to evaluate as arguments to the lazyEvaluator method, the second will be evaluated only if the first call returned a boolean true.” Did you mean that the second will be invoked (as against evaluation) only if 1st returns true. Or may be you can elaborate more about evaluation at called location…

Thanks & Regards.

06 Jan 2016, 20:03
Venkat Subramaniam (99 posts)

Hi Amod, I apologize for not replying earlier. This one slipped through the cracks.

Your observation is correct. Thank you.


You must be logged in to comment