SHARE
TWEET

Untitled

a guest Nov 22nd, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. foo = fn () int {
  2.   v = try {
  3.     a() + b()
  4.   } else {
  5.     0
  6.   }
  7.   -> v
  8. }
  9.  
  10. a = fn () -> int {
  11.   -> 0
  12. }
  13.  
  14.  
  15. b = fn () -> Result<int, str> {
  16.   throw "fail!"
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top