FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Add support for chaining function calls #376

Closed BSteffaniak closed 7 years ago

BSteffaniak commented 7 years ago

e.g.

public static main() {
    let chained = chainedFuncReference()

    chained()() // outputs "chained called!"
}

refFunc() {
    Console.log("chained called!")
}

subFunc() => refFunc

chainedFuncReference() => subFunc