Hacker News new | past | comments | ask | show | jobs | submit login

defer having function scope instead of, well, scope scope.

Using defer to unlock locks can lead to some fun deadlocks if you don't realize the issue with the scope, and it's completely unintuitive to someone with experience with other implementations of similar concepts.




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

Search: