Select correct statement regarding evaluation of functions parameters
Consider the function:
def first(x: Int, y: Int) = x
With call-by-name evaluation function call first(1, loop) evaluates to 1. However it would always reduce to itself and we would make no progress with call-by-value evaluation.
Source: Evaluation Strategies and Termination

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Scala quizzes
Sign Up Now
or Subscribe for future quizzes