summaryrefslogtreecommitdiff
path: root/transfer/README
blob: 5a764ca0762db2d1a5492e2cb58e4da9fcded726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Some features of the Transfer language:

* Purely functional
* Dependent types
* Eager evaluation
* Generalized algebraic datatypes
* Metavariables
* Records with subtyping
* Overloading by explicit dictionary passing
* Pattern matching by case expressions

Additional features in the front-end language:

* Disjunctive patterns
* do-notation
* Automatic derivation of some operations on user-defined GADTs:
  - Compositional maps and folds
  - Equality
  - Ordering
  - Showing
* Pattern equations
* Operator syntax for common functions, most are overloaded



Differences between Transfer and Cayenne:

* Cayenne has a more advanced module system

* Cayenne has mutually recursive record fields

* Cayenne erases type arguments before running

* Transfer is eager, Cayenne is lazy

* Transfer has GADTs (inductive families)

* Transfer has metavariables

* Transfer has record patterns

* Transfer has disjunctive patterns

* Transfer has derivation of compositional functions

* Transfer has a standard library which uses a hierarchy
  of "type classes"