Re:Simple Dynamic Strings library for C, compatible with nul...
by shawxe on Tuesday December 03, 2019 @01:25PM
(#21695035)
This is fine, but it somewhat defeats the purpose of the opaquely prefixed header. I think the idea is just to be able to treat an SDS like a normal string. Unfortunately, there's no way to have that property not be commutative in C.
[ Parent
| on HN ]
Re:Simple Dynamic Strings library for C, compatible with nul...
by cryptonector on Tuesday December 03, 2019 @02:44PM
(#21695908)
Yeah, but almost perfect ergonomics is good enough, and type safety >> ergonomics.