logoalt Hacker News

ueckertoday at 10:53 AM1 replyview on HN

For many string operations such as appending, inserting, overwriting etc. the memory management can be made automatic as well in C, and I think this is the main advantage. Just automatic free at scope end does not work (without extensions).


Replies

direwolf20today at 4:11 PM

You can make strings (or bignums or matrices) more convenient than the C default but you can never make them as convenient as ints, while in C++ you can.

show 1 reply