PL Playground
Code Editor
// Write your arithjs code here Person = fun(name) { this = fun () { 0 }, this("name") = name, this("greet") = fun(other) { print("I am "+this("name")+". Glad to meet you "+other) }, fun(age) { # scope analysis must change this("age") = age, # this is not local to this function because it is a modification not a definition!! this } }, john = Person("John"; 25), john("greet")("Juana")
Run Code
Output
// Output will appear here after running your code