3 ms·
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 sepa
by Thiez 8y 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).
- Dylan16807 8y ago"free" if you ignore the cost of doing lifetime management. So beneficial in some use cases but not others.