Finalizers [language.finalizers]

Manual

Don't use finalizers.

Pros

  • Alleviates the need for manual cleanup

Cons

  • Buggy, cause random GC crashes
  • Calling new with finalizer for one instance infects all instances with same finalizer
  • Newer Nim versions migrating new implementation of finalizers that are sometimes deterministic (aka destructors)