Hacker News new | ask | show | jobs
by Thiez 2800 days ago
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).
1 comments

"free" if you ignore the cost of doing lifetime management. So beneficial in some use cases but not others.