@@ -29,7 +29,7 @@ code][profunctor], the sky's the limit!
29
29
Normal ADTs
30
30
-----------
31
31
32
- Algebraic Data Types (ADT's ) are products and sums; that's why they're
32
+ Algebraic Data Types (ADTs ) are products and sums; that's why they're
33
33
algebraic, after all!
34
34
35
35
### Product Types
@@ -103,8 +103,8 @@ public class Transaction {
103
103
104
104
And there you go. Nothing too surprising there!
105
105
106
- In this case, not only are these ADT's (algebraic data types), they're also
107
- ADT's (** abstract** data types): you are meant to work with them based on a
106
+ In this case, not only are these ADTs (algebraic data types), they're also
107
+ ADTs (** abstract** data types): you are meant to work with them based on a
108
108
pre-defined abstract interface based on type algebra, instead of their internal
109
109
representations.
110
110
@@ -305,7 +305,7 @@ class Negate extends Expr {
305
305
306
306
@Override
307
307
public <R > R accept (ExprVisitor<R > visitor ) {
308
- return visitor. visitNegate(expr );
308
+ return visitor. visitNegate(unary );
309
309
}
310
310
}
311
311
@@ -454,7 +454,7 @@ let ExprF : Type -> Type
454
454
}
455
455
456
456
let Expr : Type
457
- = forall (expr : Type ) -> ExprF r -> r
457
+ = forall (r : Type ) -> ExprF r -> r
458
458
```
459
459
460
460
Note that ` ExprF r ` is essentially ` ExprVisitor<R> ` , except instead of ` add `
@@ -611,7 +611,7 @@ ghci> :t plot ScaleDate (ScaleLinear True (LNumeric NInt))
611
611
[(Date , Int )] -> Canvas
612
612
```
613
613
614
- But let's say we only had ADT's . And then we're passing them down to a
614
+ But let's say we only had ADTs . And then we're passing them down to a
615
615
javascript FFI which only has structs and functions. We could drop the
616
616
type-safety and instead error on runtime, but...no. Type unsafety is not
617
617
acceptable.
0 commit comments