Skip to content

Commit b3adae6

Browse files
som-snyttadriaanm
authored andcommitted
SI-6069 Preserve by-name during eta-expansion
This wording attempts to describe the behavior change in SI-5610 while remaining non-committal about the mechanism. It refers to the section on function applications and attempts to use similar language.
1 parent a89157f commit b3adae6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/06-expressions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,10 @@ n$). The result of eta-conversion is then:
17821782
}
17831783
```
17841784

1785+
The behavior of [call-by-name parameters](#function-applications)
1786+
is preserved under eta-expansion: the corresponding actual argument expression,
1787+
a sub-expression of parameterless method type, is not evaluated in the expanded block.
1788+
17851789
### Dynamic Member Selection
17861790

17871791
The standard Scala library defines a trait `scala.Dynamic` which defines a member

0 commit comments

Comments
 (0)