alcides / aeon

Aeon programming language
https://alcides.github.io/aeon/
8 stars 3 forks source link

Syntax: Function arguments #45

Closed eduardo-imadeira closed 6 months ago

eduardo-imadeira commented 6 months ago

closes #43

about the last 2 checkboxes, I didnt remove the support to the old syntax, now supports both syntaxes, as we can see in the file 'aeon/examples/sugar/function_main.ae':

def fff : (z:Int) -> (f: (a:{k:Int | 1 <= k && k <= 10000}) ->( b:{m:Int | 0 <=m} ) -> Int ) -> Int = \b-> \a-> b+ a(2)(3);
def fff : (z:Int) -> (f: (a:Int | 1 <= a && a <= 10000) -> ( b:Int | 0 <=b) -> Int ) -> Int = \b-> \a-> b+ a(2)(3);