Skip to content

Commit 42dda9e

Browse files
committed
replace \ldots by ...
1 parent 3456c69 commit 42dda9e

9 files changed

+321
-321
lines changed

docs/_spec/03-types.md

Lines changed: 61 additions & 61 deletions
Large diffs are not rendered by default.

docs/_spec/04-basic-declarations-and-definitions.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ associate term names with types.
3232
The scope of a name introduced by a declaration or definition is the
3333
whole statement sequence containing the binding. However, there is a
3434
restriction on forward references in blocks: In a statement sequence
35-
´s_1 \ldots s_n´ making up a block, if a simple name in ´s_i´ refers
35+
´s_1 ... s_n´ making up a block, if a simple name in ´s_i´ refers
3636
to an entity defined by ´s_j´ where ´j \geq i´, then for all ´s_k´
3737
between and including ´s_i´ and ´s_j´,
3838

@@ -138,12 +138,12 @@ as left-hand side. If ´p´ is some pattern other
138138
than a simple name or a name followed by a colon and a type, then the
139139
value definition `val ´p´ = ´e´` is expanded as follows:
140140

141-
1. If the pattern ´p´ has bound variables ´x_1 , \ldots , x_n´, where ´n > 1´:
141+
1. If the pattern ´p´ has bound variables ´x_1, ..., x_n´, where ´n > 1´:
142142

143143
```scala
144-
val ´\$x´ = ´e´ match {case ´p´ => (´x_1 , \ldots , x_n´)}
144+
val ´\$x´ = ´e´ match {case ´p´ => (´x_1, ..., x_n´)}
145145
val ´x_1´ = ´\$x´._1
146-
´\ldots´
146+
...
147147
val ´x_n´ = ´\$x´._n
148148
```
149149

@@ -184,11 +184,11 @@ val xs = x´\$´._2
184184

185185
The name of any declared or defined value may not end in `_=`.
186186

187-
A value declaration `val ´x_1 , \ldots , x_n´: ´T´` is a shorthand for the
187+
A value declaration `val ´x_1, ..., x_n´: ´T´` is a shorthand for the
188188
sequence of value declarations `val ´x_1´: ´T´; ...; val ´x_n´: ´T´`.
189-
A value definition `val ´p_1 , \ldots , p_n´ = ´e´` is a shorthand for the
189+
A value definition `val ´p_1, ..., p_n´ = ´e´` is a shorthand for the
190190
sequence of value definitions `val ´p_1´ = ´e´; ...; val ´p_n´ = ´e´`.
191-
A value definition `val ´p_1 , \ldots , p_n: T´ = ´e´` is a shorthand for the
191+
A value definition `val ´p_1, ..., p_n: T´ = ´e´` is a shorthand for the
192192
sequence of value definitions `val ´p_1: T´ = ´e´; ...; val ´p_n: T´ = ´e´`.
193193

194194
## Variable Declarations and Definitions
@@ -283,11 +283,11 @@ d.hours = 8; d.minutes = 30; d.seconds = 0
283283
d.hours = 25 // throws a DateError exception
284284
```
285285

286-
A variable declaration `var ´x_1 , \ldots , x_n´: ´T´` is a shorthand for the
286+
A variable declaration `var ´x_1, ..., x_n´: ´T´` is a shorthand for the
287287
sequence of variable declarations `var ´x_1´: ´T´; ...; var ´x_n´: ´T´`.
288-
A variable definition `var ´x_1 , \ldots , x_n´ = ´e´` is a shorthand for the
288+
A variable definition `var ´x_1, ..., x_n´ = ´e´` is a shorthand for the
289289
sequence of variable definitions `var ´x_1´ = ´e´; ...; var ´x_n´ = ´e´`.
290-
A variable definition `var ´x_1 , \ldots , x_n: T´ = ´e´` is a shorthand for
290+
A variable definition `var ´x_1, ..., x_n: T´ = ´e´` is a shorthand for
291291
the sequence of variable definitions
292292
`var ´x_1: T´ = ´e´; ...; var ´x_n: T´ = ´e´`.
293293

@@ -407,7 +407,7 @@ definitions with lower bounds `>: ´L´` and upper bounds
407407
is deferred to [here](07-implicits.html#context-bounds-and-view-bounds).
408408

409409
The most general form of a proper type parameter is
410-
`´@a_1 \ldots @a_n´ ´\pm´ ´t´ >: ´L´ <: ´U´`.
410+
`´@a_1 ... @a_n´ ´\pm´ ´t´ >: ´L´ <: ´U´`.
411411
Here, ´L´, and ´U´ are lower and upper bounds that
412412
constrain possible type arguments for the parameter. It is a
413413
compile-time error if ´L´ does not conform to ´U´. ´\pm´ is a _variance_, i.e. an optional prefix of either `+`, or
@@ -426,7 +426,7 @@ TODO: this is a pretty awkward description of scoping and distinctness of binder
426426

427427
The names of all type parameters must be pairwise different in their enclosing type parameter clause. The scope of a type parameter includes in each case the whole type parameter clause. Therefore it is possible that a type parameter appears as part of its own bounds or the bounds of other type parameters in the same clause. However, a type parameter may not be bounded directly or indirectly by itself.
428428

429-
A type constructor parameter adds a nested type parameter clause to the type parameter. The most general form of a type constructor parameter is `´@a_1 \ldots @a_n \pm t[\mathit{tps}\,]´ >: ´L´ <: ´U´`.
429+
A type constructor parameter adds a nested type parameter clause to the type parameter. The most general form of a type constructor parameter is `´@a_1 ... @a_n \pm t[\mathit{tps}\,]´ >: ´L´ <: ´U´`.
430430

431431
The above scoping restrictions are generalized to the case of nested type parameter clauses, which declare higher-order type parameters. Higher-order type parameters (the type parameters of a type parameter ´t´) are only visible in their immediately surrounding parameter clause (possibly including clauses at a deeper nesting level) and in the bounds of ´t´. Therefore, their names must only be pairwise different from the names of other visible parameters. Since the names of higher-order type parameters are thus often irrelevant, they may be denoted with a `‘_’`, which is nowhere visible.
432432

@@ -491,11 +491,11 @@ changes at the following constructs.
491491
- The type of a mutable variable is always in invariant position.
492492
- The right-hand side of a type alias is always in invariant position.
493493
- The prefix ´S´ of a type selection `´S´#´T´` is always in invariant position.
494-
- For a type argument ´T´ of a type `´S´[´\ldots T \ldots´ ]`: If the
494+
- For a type argument ´T´ of a type `´S´[´... T ...´ ]`: If the
495495
corresponding type parameter is invariant, then ´T´ is in
496496
invariant position. If the corresponding type parameter is
497497
contravariant, the variance position of ´T´ is the opposite of
498-
the variance position of the enclosing type `´S´[´\ldots T \ldots´ ]`.
498+
the variance position of the enclosing type `´S´[´... T ...´ ]`.
499499

500500
<!-- TODO: handle type aliases -->
501501

@@ -602,7 +602,7 @@ signature and ´T´ is its result type. A _function definition_
602602
i.e. an expression which defines the function's result. A parameter
603603
signature consists of an optional type parameter clause `[´\mathit{tps}\,´]`,
604604
followed by zero or more value parameter clauses
605-
`(´\mathit{ps}_1´)´\ldots´(´\mathit{ps}_n´)`. Such a declaration or definition
605+
`(´\mathit{ps}_1´)...(´\mathit{ps}_n´)`. Such a declaration or definition
606606
introduces a value with a (possibly polymorphic) method type whose
607607
parameter types and result type are as given.
608608

@@ -635,7 +635,7 @@ For every parameter ´p_{i,j}´ with a default argument a method named
635635
expression. Here, ´n´ denotes the parameter's position in the method
636636
declaration. These methods are parametrized by the type parameter clause
637637
`[´\mathit{tps}\,´]` and all value parameter clauses
638-
`(´\mathit{ps}_1´)´\ldots´(´\mathit{ps}_{i-1}´)` preceding ´p_{i,j}´.
638+
`(´\mathit{ps}_1´)...(´\mathit{ps}_{i-1}´)` preceding ´p_{i,j}´.
639639
The `´f\$´default´\$´n` methods are inaccessible for user programs.
640640

641641
###### Example
@@ -717,17 +717,17 @@ _repeated_ parameter inside the method is then the sequence type
717717
`scala.Seq[´T´]`. Methods with repeated parameters
718718
`´T´*` take a variable number of arguments of type ´T´.
719719
That is, if a method ´m´ with type
720-
`(´p_1:T_1 , \ldots , p_n:T_n, p_s:S´*)´U´` is applied to arguments
721-
´(e_1 , \ldots , e_k)´ where ´k \geq n´, then ´m´ is taken in that application
722-
to have type ´(p_1:T_1 , \ldots , p_n:T_n, p_s:S , \ldots , p_{s'}:S)U´, with
720+
`(´p_1:T_1, ..., p_n:T_n, p_s:S´*)´U´` is applied to arguments
721+
´(e_1, ..., e_k)´ where ´k \geq n´, then ´m´ is taken in that application
722+
to have type ´(p_1:T_1, ..., p_n:T_n, p_s:S, ..., p_{s'}:S)U´, with
723723
´k - n´ occurrences of type
724724
´S´ where any parameter names beyond ´p_s´ are fresh. The only exception to
725725
this rule is if the last argument is
726726
marked to be a _sequence argument_ via a `_*` type
727727
annotation. If ´m´ above is applied to arguments
728-
`(´e_1 , \ldots , e_n, e'´: _*)`, then the type of ´m´ in
728+
`(´e_1, ..., e_n, e'´: _*)`, then the type of ´m´ in
729729
that application is taken to be
730-
`(´p_1:T_1, \ldots , p_n:T_n,p_{s}:´scala.Seq[´S´])`.
730+
`(´p_1:T_1, ... , p_n:T_n,p_{s}:´scala.Seq[´S´])`.
731731

732732
It is not allowed to define any default arguments in a parameter section
733733
with a repeated parameter.
@@ -875,15 +875,15 @@ _importable_ if it is [accessible](05-classes-and-objects.html#modifiers).
875875
The most general form of an import expression is a list of _import selectors_
876876

877877
```scala
878-
{ ´x_1´ => ´y_1 , \ldots , x_n´ => ´y_n´, _ }
878+
{ ´x_1´ => ´y_1, ..., x_n´ => ´y_n´, _ }
879879
```
880880

881881
for ´n \geq 0´, where the final wildcard `‘_’` may be absent. It
882882
makes available each importable member `´p´.´x_i´` under the unqualified name
883883
´y_i´. I.e. every import selector `´x_i´ => ´y_i´` renames
884884
`´p´.´x_i´` to
885885
´y_i´. If a final wildcard is present, all importable members ´z´ of
886-
´p´ other than `´x_1 , \ldots , x_n,y_1 , \ldots , y_n´` are also made available
886+
´p´ other than `´x_1, ..., x_n,y_1, ..., y_n´` are also made available
887887
under their own unqualified names.
888888

889889
Import selectors work in the same way for type and term members. For
@@ -918,9 +918,9 @@ i.e. it makes available without qualification all members of ´p´
918918
(this is analogous to `import ´p´.*` in Java).
919919

920920
An import clause with multiple import expressions
921-
`import ´p_1´.´I_1 , \ldots , p_n´.´I_n´` is interpreted as a
921+
`import ´p_1´.´I_1, ..., p_n´.´I_n´` is interpreted as a
922922
sequence of import clauses
923-
`import ´p_1´.´I_1´; ´\ldots´; import ´p_n´.´I_n´`.
923+
`import ´p_1´.´I_1´; ...; import ´p_n´.´I_n´`.
924924

925925
###### Example
926926
Consider the object definition:

0 commit comments

Comments
 (0)