alcides / aeon

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

Syntax: Method call #27

Open alcides opened 6 months ago

alcides commented 6 months ago

Assume you have the following code:

def Int.toString : (n:Int) -> String = native "str";
def Int.plus : (n:Int) -> (m:Int) -> Int = \x -> \y -> x+y;

You should be able to write:

s : String = 1.toString
v : String = (1.plus 2).toString

Implementing this is not necessarily trivial in the current version. You need:

Depends on #26.