Better HN
topnewbestaskshowjobs
Log inSign up

sbrudenell

1 karma · joined Feb 4, 2013 (13y ago) · 1 submissions

Submissions

comment 1y ago · link · parent

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