Automatic (and unavoidable) resource freeing #408
emil14
started this conversation in
Error handling
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was thinking about #232 and question came to my mind - can we implement such a language where we don't have to do things like
defer file.Close()
cuz they are just happens by themselves?Problem 1. How to handle errors?
In Go things like
file.Close()
usually returnserr
Beta Was this translation helpful? Give feedback.
All reactions