Hacker Newsnew | past | comments | ask | show | jobs | submit | sbrudenell's commentslogin

I always thought golang's defer was a readability nightmare because it obfuscates execution order. OP's "basic example" is ... a great example of obfuscation. try/finally doesn't have this problem. It can add indents, but I'd so much rather read a function with 4 indents than 4 defers


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

Search: