Michael2109 / cobalt

The Cobalt programming language
GNU Lesser General Public License v3.0
37 stars 10 forks source link

Parse try, catch, finally #531

Open Michael2109 opened 6 years ago

Michael2109 commented 6 years ago
try
  # do something
catch
    case foo: FooException => handleFooException(foo)
    case bar: BarException => handleBarException(bar)
    case _: Throwable => println("Got some other kind of exception")
finally
  # do something