Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
gabereiser
3y ago
0 comments
Save
Share
But this is a slice. So technically a []char?
0 comments
1 comments · 1 top-level
top
newest
oldest
selcuka
3y ago
Not really. It's only a reference to the original string, a start index, and an end index. It doesn't store a second (partial) copy of the string.
j
/
k
navigate · click thread line to collapse