3 ms·
> how would a nominally different string type be better than wrapping the string ? * It is significantly less verbose, therefore simpler and more likely to be
by masklinn 15y ago
> how would a nominally different string type be better than wrapping the string ?
* It is significantly less verbose, therefore simpler and more likely to be used at all. And less error-prone
* It can provide string APIs working on itself (either by default or through the aliasing declaration) precluding the need to manually re-implement things like comparisons or printing