Replies to message #5,069

  • 🔎 If you see an alert for analytics.usips.org, this is a self-hosted system I am running as a test. It is GDPR compliant and collects no invasive information.
3

Programming thread

Most languages have it as try-finally, but this is typically paired with exceptions, which Go doesn't have.
Anti Snigger

Programming thread

It's useful for that, but at its core, it allows you to queue up tasks to run upon the scope wrapping up
y a t s

Programming thread

It's the same core idea, but defer is more flexible since you can defer any function, including anonymous ones. You can see my chat client example...
Back
Top Bottom