Hacker News new | past | comments | ask | show | jobs | submit login

Note that the new disposable protocol in JavaScript is unrelated to garbage collection; it's more like Go's `defer`. The grandparent is talking about JavaScript's somewhat older FinalizationRegistry.



Sure, just like in many other languages with automatic memory management.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: