3 ms·
Looks incomplete. I got intrigued by: > Optional garbage collection. The standard library will work with or without the GC. but the corresponding section in d
by theamk 1y ago
Looks incomplete. I got intrigued by:
> Optional garbage collection. The standard library will work with or without the GC.
but the corresponding section in docs (Memory Management -> Optional Garbage Collection) returns 404 for me. And the other docs make it not clear.. for example "heap" section [0] makes no mention of how to deallocate things. And json stdlib [1] has many allocating methods which return "json_t pointer" and yet make no methods for de-allocation.
I wonder if when they say "The standard library will work without the GC" they imply "... but no objects will get de-allocated ever and memory usage will grow infinitely"
[0] https://scarlang-docs.pages.dev/heap/ https://scarlang-docs.pages.dev/heap/
[1] https://scarlang-docs.pages.dev/stdlib/json/ https://scarlang-docs.pages.dev/stdlib/json/