Closed arakov closed 3 years ago
A
{
test2() { console.writeLine("test2") }
}
public program()
{
var a:= new A();
// try alternatives
a.test() \ test2();
// try and catch
a.test() \\ on:(Exception e) { console.writeLine("exception") };
// try, finally and catch
a.test() $fnl { console.writeLine("finally") } \\ on:(Exception e) { console.writeLine("exception") };
}
done
Redesign try-catch-finally opeator to simplify its syntax and free | operator for #538