Re:Will Hare replace C? Or Rust? Or Zig? Or anything else?
by ddevault on Tuesday May 03, 2022 @09:36AM
(#31248119)
Strings are essentially a usage-constrained slice alias. You can pass a string into "free" and it will free the underlying storage. Check out the spec for the full answer:
https://harelang.org/specification.pdf
They are a very lightweight language feature which is mostly supplemented by the standard library, e.g. the strings module.