Skip to content

Commit

Permalink
SI-6069 Preserve by-name during eta-expansion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
som-snytt authored and adriaanm committed Mar 29, 2014
1 parent a89157f commit b3adae6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/06-expressions.md
Expand Up @@ -1782,6 +1782,10 @@ n$). The result of eta-conversion is then:
}
```

The behavior of [call-by-name parameters](#function-applications)
is preserved under eta-expansion: the corresponding actual argument expression,
a sub-expression of parameterless method type, is not evaluated in the expanded block.

### Dynamic Member Selection

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

0 comments on commit b3adae6

Please sign in to comment.