Skip to content

Instantly share code, notes, and snippets.

@christineponyl
Created October 13, 2019 16:17
Show Gist options
  • Save christineponyl/c5f383c0e99896b418ccb8cd06b63c25 to your computer and use it in GitHub Desktop.
Save christineponyl/c5f383c0e99896b418ccb8cd06b63c25 to your computer and use it in GitHub Desktop.
actor Main
new create(env: Env) =>
try
let foo = Foo.create()?
something_else(foo)
else
env.err.print("Something went wrong!")
env.exitcode(1)
end
fun something_else(foo: Foo) => None
class Foo
new create() ? => error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment