News for hackers. Stuff that matters.
Re:Simple Dynamic Strings library for C, compatible with nul... by salgernon on Wednesday December 04, 2019 @12:47PM (#21704671)
An unpopular opinion: just use the C++ as a better C and get firm static typechecking against this 'sds' type. And I personally would rather include const char* getUTF8StringPtr(sds) rather than an operator overload too.

When I have a major refactoring project, I typically will try to compile it with C++ first to help catch all the weird wobbly bits like this.

[EDIT: I now see in the comments other people with a similar opinion, so maybe not as unpopular as I would've thought!]

There are no comments on this comment yet.