Skip to content

Commit 371ae2c

Browse files
committed
Resolved ‘See the Reference docs’ lines that had nothing to link to
1 parent 064782e commit 371ae2c

7 files changed

+24
-33
lines changed

Diff for: _overviews/scala3-book/collections-classes.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ Similarly, when you use `:+` you know the list needs to be on the left:
169169
a :+ 4
170170
```
171171

172-
As explained in the Reference documentation, there are more technical ways to think about this, but this can be a helpful way to remember the method names.
172+
There are more technical ways to think about this, but this can be a helpful way to remember the method names.
173+
174+
{% comment %}
175+
LATER: Add a discussion of `:` on method names, right-associativity, and infix operators.
176+
{% endcomment %}
173177

174178
Also, a good thing about these symbolic method names is that they’re consistent.
175179
The same method names are used with other immutable sequences, such as `Seq` and `Vector`.
@@ -247,7 +251,7 @@ scala> x.take(1).foreach(println)
247251
1
248252
````
249253

250-
For more information on the uses, benefits, and drawbacks of strict and non-strict (lazy) collections, see the Reference documentation.
254+
For more information on the uses, benefits, and drawbacks of strict and non-strict (lazy) collections, see the “strict” and “non-strict” discussions on the [The Architecture of Scala 2.13’s Collections][strict] page.
251255

252256
<!--
253257
Given that definition, collections can also be thought of in terms of being strict or lazy. In a _strict_ collection, memory for the elements is allocated immediately, and all of its elements are immediately evaluated when a transformer method is invoked. In a _lazy_ collection, memory for the elements is not allocated immediately, and transformer methods do not construct new elements until they are demanded.
@@ -389,8 +393,6 @@ a(2) = 50 // ArrayBuffer(1, 2, 50, 4)
389393
a.update(0, 10) // ArrayBuffer(10, 2, 50, 4)
390394
```
391395

392-
See the Reference documentation for more `ArrayBuffer` information and examples.
393-
394396

395397

396398
## Maps
@@ -614,4 +616,4 @@ When you need more information about specialized collections, see the following
614616

615617

616618

617-
619+
[strict]: {% link _overviews/core/architecture-of-scala-213-collections.md %}

Diff for: _overviews/scala3-book/collections-methods.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ emptyList.headOption // Option[Int] = None
246246
```
247247

248248
As shown, it doesn’t throw an exception, it simply returns the type `Option` that has the value `None`.
249-
You can learn more about this programming style in the Reference documentation.
249+
You can learn more about this programming style in the [Functional Programming][fp-intro] chapter.
250250

251251

252252

@@ -408,8 +408,7 @@ res1: Int = 24
408408

409409
## Even more
410410

411-
There are literally dozens of additional methods on the Scala collections types that will keep you from ever needing to write another `for` loop.
412-
See the Reference documentation for more details and examples.
411+
There are literally dozens of additional methods on the Scala collections types that will keep you from ever needing to write another `for` loop. See [Mutable and Immutable Collections][mut-immut-colls] and [The Architecture of Scala Collections][architecture] for many more details on the Scala collections.
413412

414413
> As a final note, if you’re using Java code in a Scala project, you can convert Java collections to Scala collections.
415414
> By doing this you can use those collections in `for` expressions, and can also take advantage of Scala’s functional collections methods.
@@ -419,4 +418,7 @@ See the Reference documentation for more details and examples.
419418

420419
[interacting]: {% link _overviews/scala3-book/interacting-with-java.md %}
421420
[lambdas]: {% link _overviews/scala3-book/fun-anonymous-functions.md %}
421+
[fp-intro]: {% link _overviews/scala3-book/fp-intro.md %}
422+
[mut-immut-colls]: {% link _overviews/collections-2.13/overview.md %}
423+
[architecture]: {% link _overviews/core/architecture-of-scala-213-collections.md %}
422424

Diff for: _overviews/scala3-book/concurrency.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ Other transformation methods include:
174174
- `recover`
175175
- `recoverWith`
176176

177-
178-
See the `Future` class Scaladoc for a list of additional methods.
179-
Also, see the Concurrency section in the Reference documentation for more details on how futures work.
177+
See the [Futures and Promises][futures] page for a discussion of additional methods available to futures.
180178

181179

182180

@@ -303,6 +301,9 @@ To summarize, a few key points about futures are:
303301

304302
Also, as you saw with the `import` statements in these examples, the Scala `Future` depends on an `ExecutionContext`.
305303

306-
For more details about futures, see [Futures and Promises](https://docs.scala-lang.org/overviews/core/futures.html), an article that discusses futures, promises, and execution contexts.
304+
For more details about futures, see [Futures and Promises][futures], an article that discusses futures, promises, and execution contexts.
307305
It also provides a discussion of how a `for` expression is translated into a `flatMap` operation.
308306

307+
308+
309+
[futures]: {% link _overviews/core/futures.md %}

Diff for: _overviews/scala3-book/control-structures.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ next-page: domain-modeling-intro
88
---
99

1010

11-
{% comment %}
12-
- TODO: Should this section show (a) general control structure syntax and (b) syntax rules, such as when `do` is required? I currently assumed this should be in the Reference.
13-
{% endcomment %}
14-
1511
Scala has the control structures you expect to find in a programming language, including:
1612

1713
- `if`/`then`/`else`
@@ -391,7 +387,6 @@ Otherwise, the catch-all case is represented by the `_` character, and `day` is
391387

392388
> When writing simple `match` expressions like this, it’s recommended to use the `@switch` annotation on the variable `i`.
393389
> This annotation provides a compile time warning if the switch can’t be compiled to a `tableswitch` or `lookupswitch`, which are better for performance.
394-
> See the Reference documentation for more details.
395390
396391

397392
### Using the default value
@@ -540,6 +535,12 @@ def pattern(x: Matchable): String = x match
540535
case _ => "Unknown"
541536
```
542537

538+
{% comment %}
539+
TODO: Add in the new Scala 3 syntax shown on this page:
540+
http://dotty.epfl.ch/docs/reference/changed-features/match-syntax.html
541+
{% endcomment %}
542+
543+
543544

544545
## try/catch/finally
545546

Diff for: _overviews/scala3-book/fp-functional-error-handling.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ makeInt(x) match
235235
```
236236

237237
> There are several other ways to handle `Option` values.
238-
> See the Reference documentation for more details.
238+
> See the reference documentation for more details.
239239
{% endcomment %}
240240

241241

@@ -311,8 +311,6 @@ While this section focuses on the `Option` classes, Scala has a few other altern
311311
For example, a trio of classes known as `Try`/`Success`/`Failure` work in the same manner, but (a) you primarily use these classes when your code can throw exceptions, and (b) you want to use the `Failure` class because it gives you access to the exception message.
312312
For example, these `Try` classes are commonly used when writing methods that interact with files, databases, and internet services, as those functions can easily throw exceptions.
313313

314-
You can learn more about the `Try` classes and the similar `Either`/`Right`/`Left` classes in the Reference documentation.
315-
316314

317315

318316
## A quick review

Diff for: _overviews/scala3-book/interacting-with-java.md

-7
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,3 @@ System.out.printf("x = %d\n", x);
357357
```
358358

359359

360-
361-
## More information
362-
363-
This section highlights some of the main topics to know when integrating Scala and Java code bases.
364-
For more details, including a few other topics not covered here, see the _Interacting with Java_ section in the Reference documentation.
365-
366-

Diff for: _overviews/scala3-book/packaging-imports.md

-6
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,4 @@ As mentioned, one of the key design benefits of the “import given” syntax is
391391

392392

393393

394-
## Summary
395-
396-
While that covers almost all of the features of packing and imports, see the Reference documentation for a few more details and features.
397-
398-
399-
400394
[contextual]: {% link _overviews/scala3-book/ca-contextual-abstractions-intro.md %}

0 commit comments

Comments
 (0)