-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
a: rule(int,int):int = rule ...
# if we want to migrate to fun
a: fun(int, int):int = fun it1+it2
# can be named
a: fun(a:int, b:int):int = fun(a,b) a+b
# can be without any specification
a: fun = fun it1+it2
to discuss
# can be without type specification
#candidate 1:
a: fun( , ) = fun it1+it2
#candidate 2:
a: fun(*,*):* = fun it1+i2
#candidate 3:
a: fun(..,..):.. = fun it1+it2
#candidate 4:
a: fun(val,val):val = fun it1+it2
# it is the same problem as we have in map
a: map(*,int) = ...
# can be solved as kiss operator
a:* = 42
# can use generic types. How to specify constrains
a: fun[of T,V](T, V):V
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels