DEV Community

Enrque\m/Talavera
Enrque\m/Talavera

Posted on

1

Chapter 25

-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

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay