Chapter 25
Enrque\m/Talavera

Enrque\m/Talavera @kiquetal

Location:
Paraguay
Joined:
Sep 19, 2019

Chapter 25

Publish Date: Jul 11 '20
1 0

-A by-value parameter is like receiving a val field, its body is evaluated once, when the parameter is bound to the function.
-A by-name parameter is like receiving a def method;its body is evaluated whenever it is used inside the functions.

This (by-name) indicates that the arguments is not evaluated at the point of function application, but instead are evaluated at each use within the function.

https://stackoverflow.com/a/35625483

Comments 0 total

    Add comment