You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/blog/_posts/2021-02-18-scala3-rc1.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ import NumPy as np
32
32
33
33
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).
34
34
35
-
# Use `unitialized` for wildcard initializers
35
+
# Use `uninitialized` for wildcard initializers
36
36
An obscure use of _ occurs in var definitions:
37
37
38
38
```scala
@@ -82,24 +82,24 @@ Results in:
82
82
As the warning suggests, now you should write `Foo.apply` instead of `Foo`. See [Issue #6190](https://github.com/lampepfl/dotty/issues/6190) and [PR #7207](https://github.com/lampepfl/dotty/pull/7207) for discussion.
83
83
84
84
# Other language changes
85
-
- Warn when matching against an opaque type [#10664](https://github.com/lampepfl/dotty/pull/10664) - a useful warning added to draw your attention when you are trying to match against an opaque type.
86
-
- Fix [#8634](https://github.com/lampepfl/dotty/issues/8634): Support -release option [#10746](https://github.com/lampepfl/dotty/pull/10746) – the same way Scala 2 does.
85
+
- Warn when matching against an opaque type [#10664](https://github.com/lampepfl/dotty/pull/10664)
86
+
- Fix [#8634](https://github.com/lampepfl/dotty/issues/8634): Support -release option [#10746](https://github.com/lampepfl/dotty/pull/10746) – the same way Scala 2 does. This setting allows you to specify a version of the Java platform (8, 9 etc) and compile the code with classes specific to the that Java platform, and emit the bytecode for that version.
87
87
88
88
# Metaprogramming changes
89
89
A lot of work has been done on the metaprogramming side of things. Mostly we are cleaning up and polishing the API to prepare it for the stable release. The following are the important metaprogramming changes that took place:
90
90
91
91
- Add `scala.quoted.Expr.unapply` as dual of `Expr.apply`[#10580](https://github.com/lampepfl/dotty/pull/10580)
- Fix [#10863](https://github.com/lampepfl/dotty/issues/10863): Make show `AnyKind`ed [#10988](https://github.com/lampepfl/dotty/pull/10988)
96
96
- Add ParamClause to allow multiple type param clauses [#11074](https://github.com/lampepfl/dotty/pull/11074)
97
97
- Rework reflect Symbol fields API [#10705](https://github.com/lampepfl/dotty/pull/10705)
98
98
- Rename `Liftable` to `ToExpr` and `Unliftable` to `FromExpr`[#10618](https://github.com/lampepfl/dotty/pull/10618)
99
99
- Expand non-transparent macros after Typer [#9984](https://github.com/lampepfl/dotty/pull/9984)
100
100
- Rework TastyInspector API to allow inspection of all files [#10792](https://github.com/lampepfl/dotty/pull/10792)
101
101
- Allow leading context parameters in extension methods [#10940](https://github.com/lampepfl/dotty/pull/10940)
102
-
- Rename Not to NotGiven to make its purpose clearer [#10720](https://github.com/lampepfl/dotty/pull/10720)
102
+
- Rename `Not` to `NotGiven` to make its purpose clearer [#10720](https://github.com/lampepfl/dotty/pull/10720)
103
103
- Fix [#10709](https://github.com/lampepfl/dotty/issues/10709): Add missing level check before inlining [#10781](https://github.com/lampepfl/dotty/pull/10781)
0 commit comments