3 ms·
> You can't seriously keep on talking about the "terrible design" of C-strings when you put Ada and Pascal in front of it. Of course I can. I have used Ada st
by brmgb 6y ago
> You can't seriously keep on talking about the "terrible design" of C-strings when you put Ada and Pascal in front of it.
Of course I can. I have used Ada strings extensively. As long as you don't mix bounded and unbounded strings too much (unbounded should be avoided anyway) it's mostly fine.
> Yes, C is not a memory safe language and you may run into trouble if you don't use stdlib string functions properly or hand-manage characters without paying attention to the termination and the reserved space, we know it.
As far as I'm concerned, that automatically puts C as pretty much the worst you can do regarding strings handling. Even the most misguided attempt to improve on that should be (and have been) an improvement.