Created
October 13, 2019 16:17
-
-
Save christineponyl/c5f383c0e99896b418ccb8cd06b63c25 to your computer and use it in GitHub Desktop.
Shared via Pony Playground (https://playground.ponylang.io/?gist=c5f383c0e99896b418ccb8cd06b63c25)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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