Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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

Search: