Body: => Html on the Play platform?

I just started using the Play and Scala platform. What does the body mean: => Html in the Play structure? Thanks.

+6
source share
2 answers

For anyone who might stumble upon the same question:

It is called the by-name parameter , and it is evaluated only if it is used in the function body.

This link explains in detail the use of this notation.

Also see: Scala Documentation

0
source

Source: https://habr.com/ru/post/904011/


All Articles