File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ These are useful to prove static properties of the code using type evidences.
1212As they have no effect on the runtime they can be erased from the resulting code by
1313the compiler once it has shown the constraints hold.
1414
15- When saying that a they have no effect on the runtime we do not only mean side effects
15+ When saying that they have no effect on the runtime we do not only mean side effects
1616like IO, field mutation, exceptions and so on. We also imply that if a function receives
1717a phantom its result will not be affected by this argument.
1818
@@ -79,7 +79,7 @@ from outside `MyPhantoms` unless an alias is defined for them.
7979
8080New phantom types can be defined using ` type XYZ <: OtherPhantom ` (where ` >: MyPhantom.Nothing `
8181will be inferred), this would be the equivalent of ` class XYZ extends OtherClass ` on a types
82- only (no runtime definitions). Or aliased with ` type MyAny = OtherPhantom ` . Whitin ` MyPhantoms `
82+ only (no runtime definitions). Or aliased with ` type MyAny = OtherPhantom ` . Within ` MyPhantoms `
8383it is possible to refer to ` MyPhantoms.Any ` and ` MyPhantoms.Nothing ` with ` this.Any ` and
8484` this.Nothing ` (or just ` Any ` and ` Nothing ` but not recommended). Using this we will define
8585four the four phantoms: ` Inky ` , ` Blinky ` , ` Pinky ` and ` Clyde ` .
You can’t perform that action at this time.
0 commit comments