Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Too late, Go already has panic(), which is a magical function that unwinds the stack.


!

So it's legal to write something like...

   panic(panic())
or

   a := try(try(f()))
...?


panic() doesn't have a return value, so no. But try() has.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: