News for hackers. Stuff that matters.
Re:Why Go is doomed to succeed by xamuel on Saturday June 13, 2015 @05:27PM (#9712731)
>And the simple ability to concatenate strings without first reserving space for the result

Not exactly the same thing, but routine string manipulation in C gets considerably easier once you discover a highly underrated function called asprintf (basically combines sprintf and malloc, calculating the buffer size for you).

Re:Why Go is doomed to succeed by Elrac on Saturday June 13, 2015 @08:23PM (#9713303)
Woo hoo, thanks for the tip!

But I still need to worry about creating a memory leak with this. :(

Re:Why Go is doomed to succeed by Merovius on Sunday June 14, 2015 @04:38AM (#9714227)
Also, asprintf is a GNU-extension, so if you want to write portable code, it's a no-go (as for everything usefull in C).
Re:Why Go is doomed to succeed by Elrac on Sunday June 14, 2015 @10:16AM (#9714980)
Thankfully, I'm not doing much C any more. Those hoity-toity hand-holding languages have spoiled me, and now I don't want to be bothered about memory management and other "trivia." :)
Re:Why Go is doomed to succeed by pjmlp on Sunday June 14, 2015 @04:01AM (#9714128)
Not in ANSI C nor POSIX.