Skip to content

Commit 7c4854b

Browse files
Add a section about vararg splices
1 parent 79ff4c3 commit 7c4854b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/blog/_posts/2021-02-17-scala3-rc1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ import NumPy as np
6060

6161
For the details and discussion, see [PR #11244](https://github.com/lampepfl/dotty/pull/11244). Read more about this change in the [documentation](https://dotty.epfl.ch/docs/reference/changed-features/imports.html).
6262

63+
# Use `*` for vararg splices.
64+
[PR #11240](https://github.com/lampepfl/dotty/pull/11240) changed the syntax of vararg splices in patterns and function arguments. The new syntax uses a postfix `*`, instead of `: _*`, analogously to how a vararg parameter is declared.
65+
6366
# Use `uninitialized` for wildcard initializers
6467
An obscure use of `_` occurs in var definitions:
6568

0 commit comments

Comments
 (0)