Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
> in-band signalling as C's standard strings
Neat analogy !
> reference count ... copies ... only then is StringB copied
You're right I should - and will - use this. But note it won't cover cases where the user modifies/copies the string from outside the API. The lib won't be aware.
> your idea is conceptually brilliant!
Oh I wish the neg offset header was my invention ! Alas it was at least used in Microsoft' BSTR and later by the famous antirez/sds (https://github.com/antirez/sds)
> no nested macros
I hear you. I thought it made them more readable.
> is all that's going on
I also (maybe naively) pretend to make mem faults occur less/at all.