Today I had this idea, I don’t know if it cuts the deal, but at least it would worth a try.
If for example some function pointers have great significance, they would deserve their own signatures declared. At least this is an approach even as syntactic sugar, is good to have more solid API in the program.
Monkey
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
#Import"<std>"
Using std..
' normally how you declare function variables is like this
' Field OnClick:Void(button:Button)
' now let's say that you introduce delegates into the system
' where it is like creating the datatype of the a function
' Delegate ButtonClick:Void(button:Button)
' then you can do this instead
' Field OnClick:ButtonClick
' however monkey currently does not support Delegates
' but aliases can be used creatively in this occasion