logoalt Hacker News

Galanweyesterday at 7:41 AM1 replyview on HN

I get your point, though in the specific case of defer, looks like we both agree it's really a good move. No more spaghetti of goto err_*; in complex initialization functions.


Replies

qserayesterday at 7:57 AM

>we both agree it's really a good move

Actually I am not sure I do. It seems to me that even though `defer` is more explicit than destructors, it still falls under "spooky action at a distance" category.

show 1 reply