News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by majke on Tuesday April 14, 2020 @10:03AM (#22866087)
I personally don't like golang's defer. For me it obscures the flow of the program. For example when I acquire a lock, I like to see where exactly it's released.

For me "defer" only makes sense in the context of exceptions, basically as an equivalent to "finally". This is a slippery slope though, since golang's exceptions are, for a reason, rudimentary.

There are no comments on this comment yet.