mukul-rathi / bolt

Bolt is a language with in-built data-race freedom!
MIT License
553 stars 53 forks source link

Use Top Level Functions rather than Lambda Fns #48

Closed mukul-rathi closed 4 years ago

mukul-rathi commented 4 years ago

Matter of style:

This is more in line with Java - closures aren't really used in OOP and it's much cleaner to define all the functions beforehand as

function int f (int x) { 
        x
}

rather than

 let f = fun x:int -> x end in   
        ....
end