Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
realgeniushere
on Dec 3, 2022
|
parent
|
context
|
favorite
| on:
Show HN: A nice C string API
Makes me think less of antirez that he doesn’t acknowledge that this is the same design as Microsoft’s BSTRs, which predate sds by many many years.
dixie_land
on Dec 4, 2022
[–]
I also thought of BSTR but in all fairness this idea of prefixing metadata for string types aren't so unique: eg Delphi's string types use a similar scheme:
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Inte...
One obvious advantage of such scheme of course is that you can pass them as-is to C APIs
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: