3 ms·
Does Go not have finalizers? These are mostly solved problems since the Smalltalk era. Haven't learned Go yet and from what I read I'd be better off with Rust o
by api 11y ago
Does Go not have finalizers? These are mostly solved problems since the Smalltalk era. Haven't learned Go yet and from what I read I'd be better off with Rust or something that would stretch my brain more like Haskell. When I read about it I get the sense that we are reinventing stuff from the 90s. But hey, it's hip.
- catnaroek 11y agoSometimes you need to guarantee that resources are cleaned up in a timely fashion. Finalizers don't help here.
- hacknat 11y agoPiggy backing off @catnaroek, go does have finalizers too though.
- pcwalton 11y agoGo does have runtime.SetFinalizer: https://golang.org/pkg/runtime/#SetFinalizer https://golang.org/pkg/runtime/#SetFinalizer But beware of finalizer ordering issues.