| 1 |
abate |
1 |
- Define a 'widening functions' (types -> types) such two |
| 2 |
|
|
equivalent types become physically equal |
| 3 |
abate |
7 |
|
| 4 |
|
|
|
| 5 |
|
|
- Cache typing derivations, to avoid duplicating work when typing |
| 6 |
|
|
invariant parts of overloaded functions. One has to restrict |
| 7 |
|
|
the typing environment to the set of free variables for the |
| 8 |
|
|
expression, and compare it to previous typing of this expression; |
| 9 |
|
|
if the same environment has been used before, reuse the result. |
| 10 |
|
|
|
| 11 |
|
|
Need to benchmark and define heuristics to know when to apply |
| 12 |
|
|
this mechanism => empirical. |
| 13 |
abate |
15 |
|
| 14 |
|
|
|
| 15 |
|
|
- Remember compiled regexp when printing; same with XML sugar |
| 16 |
|
|
|
| 17 |
|
|
- When an arrow constraint is not satisfied when typing a function, |
| 18 |
|
|
point to the specific branch ... |
| 19 |
|
|
Better: alternate mode of typing << check that this expression |
| 20 |
|
|
has at most this type >> |