Going nearly crazy

You got my point. we agree.

if you do any serious work and not a throw away demo, you'll need to have proper error handling in case of something unexpected happens. if you want to do crapy code then safestring, String or whatever is just fine.

for example how would you catch upfront that there was not enough space when doing this with the safeString library?


The point is not about crashing code because of going beyond boundaries; the point is about catching and recovering from errors when they happen. if you don't your program will possibly crash because your string does not hold what you expected.