Re:Some Were Meant for C (2017) [pdf]
by johannes1234321 on Thursday April 25, 2019 @06:18AM
(#19746618)
> To make substring in some other languages, you need to store pointer to beginning of the substring and length of substring.
Plus a pointer to the beginning, plus a reference counter as the user expects it to manage lifetime. In C this is the user's job. Where they know the life time is guaranteed they can optimize.
Plus a pointer to the beginning, plus a reference counter as the user expects it to manage lifetime. In C this is the user's job. Where they know the life time is guaranteed they can optimize.