And actually, if you have such short strings, the small buffer optimization of modern string implementations will kick in and not allocate anything on the heap at all.
And actually, if you have such short strings, the small buffer optimization of modern string implementations will kick in and not allocate anything on the heap at all.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law