Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Thiez
7y ago
0 comments
Share
When you have record strings you get slicing for free though. Without the indirection of a pointer you have to copy data when you slice (or you must have a separate 'sliced string' type).
0 comments
default
newest
oldest
Dylan16807
7y ago
"free" if you ignore the cost of doing lifetime management. So beneficial in some use cases but not others.
j
/
k
navigate · click thread line to collapse