aboutsummaryrefslogtreecommitdiffhomepage
path: root/notes/named_function_types.txt
blob: f23567e50d2f40a7d9b901dba18e2cd652d80106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

Named function types
====================

For example:

    type Sorter[ref T] = func(ref T a, ref T B) -> enum SortResult
    func sort(func Sorter sortfunc)

If function references are *required* to be named, then we could
create a jump table for each function type (at load time) and
use integers/indices to store function references.

Similarly, enums could also be required to be named.