Skip to content

Commit fe08449

Browse files
Sync with the stable documentation branch (#17195)
This pull request is syncing the main with changes from language-reference-stable. It was created automatically after 848aeda by @Sporarum
2 parents d577300 + c0941e7 commit fe08449

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

docs/_docs/reference/changed-features/lazy-vals-init.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ title: Lazy Vals Initialization
44
nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/lazy-vals-init.html
55
---
66

7-
Scala 3 implements [Version 6](https://docs.scala-lang.org/sips/improved-lazy-val-initialization.html#version-6---no-synchronization-on-this-and-concurrent-initialization-of-fields)
8-
of the [SIP-20] improved lazy vals initialization proposal.
7+
Scala 3 implements Version 6 of the [SIP-20] improved lazy vals initialization proposal.
98

109
## Motivation
1110

@@ -77,4 +76,4 @@ recursive lazy vals is undefined (initialization may result in a deadlock).
7776

7877
* [SIP-20]
7978

80-
[SIP-20]: https://docs.scala-lang.org/sips/improved-lazy-val-initialization.html
79+
[SIP-20]: https://github.com/scala/improvement-proposals/pull/19

docs/_docs/reference/metaprogramming/tasty-inspect.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,33 @@ title: "TASTy Inspection"
44
nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/tasty-inspect.html
55
---
66

7-
```scala
8-
libraryDependencies += "org.scala-lang" %% "scala3-tasty-inspector" % scalaVersion.value
9-
```
10-
117
TASTy files contain the full typed tree of a class including source positions
128
and documentation. This is ideal for tools that analyze or extract semantic
13-
information from the code. To avoid the hassle of working directly with the TASTy
9+
information from the code.
10+
11+
To avoid the hassle of working directly with the TASTy
1412
file we provide the `Inspector` which loads the contents and exposes it
1513
through the TASTy reflect API.
1614

17-
## Inspecting TASTy files
15+
We also showcase TASTyViz, a visualiser for tasty, useful for debugging and checking your understanding of TASTy
16+
17+
## TASTyViz
18+
19+
<!-- Keep synced with https://github.com/scala/docs.scala-lang/blob/main/scala3/guides/tasty-overview.md -->
20+
21+
TASTyViz is a tool to inspect TASTy files visually.
22+
At the time of writing, it is still in the early stages of developement, therefore you can expect missing functionality and less-than-ideal user experience, but it could still prove useful when debugging.
23+
You can check it out [here](https://github.com/shardulc/tastyviz).
24+
25+
## `Inspector`
26+
27+
`Inspector` is a tool which provides API access to TASTy.
28+
29+
You can add the depency to your sbt build like so:
30+
```scala
31+
libraryDependencies += "org.scala-lang" %% "scala3-tasty-inspector" % scalaVersion.value
32+
```
33+
1834

1935
To inspect the trees of a TASTy file a consumer can be defined in the following way.
2036

docs/_docs/reference/new-types/union-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Union Types"
44
nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/union-types.html
55
---
66

7-
A union type `A | B` has as values all values of type `A` and also all values of type `B`.
7+
A union type `A | B` includes all values of both types.
88

99

1010
```scala

0 commit comments

Comments
 (0)