But the implementation language doesn’t matter for that, doesn’t it? Or does it transpile to golang? Reading https://scarlang-docs.pages.dev/philosophy/, which says
Compilation model
C backend for practical reasons.
I don’t see that being the case.
theamk•2h ago
> 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/
[1] https://scarlang-docs.pages.dev/stdlib/json/