4 ms·
I've used languages with and without garbage collection. Usually, manual is more difficult to write, automatic is more difficult to troubleshoot. I would love
by narag 2y ago
I've used languages with and without garbage collection. Usually, manual is more difficult to write, automatic is more difficult to troubleshoot.
I would love to use a language that allows me to do both. Writing exploratory code is more convenient using automatic memory management. There are certain kinds of code that benefit from manual memory management.
I find appalling that people can't find a middle ground between forbidden and mandatory.
- amedvednikov 2y agoV uses a GC by default, but it's easily disabled per function/module via the @[manualfree] attribute or for the entire project via `v -gc none` https://vlang.io https://vlang.io
- Negitivefrags 2y agoThat langauge is C++. I almost never do manual memory management in that language, but you can do it if you want.
- deleted 2y ago[deleted]