Golang's `defer` is lackin'.
Could have added scope guards, but added something that:
1. Only works with function calls?
2. Evaluates the arguments at defer line not deferral time
3. Yeah number 1 tbh
Either way enjoying learning another language for fun, took some getting used to (the type system isn't that straight forward; and that's coming from someone who understood OCaml very well/enough).
I think it may have been hyped a little but I want to learn it anyways; best way to see if the juice is as sweet as they say it is.
Login to reply