3 ms·
There's plenty of C string libraries with opaque types. No reason why a similar thing can't be done there.
by kimixa 1y ago
There's plenty of C string libraries with opaque types. No reason why a similar thing can't be done there.
- menaerus 1y agoOpaque types cannot be stack- or statically allocated.
- kimixa 1y agoNo, but many languages already have limitations like "strings live on the heap", even many discussed in this thread. Dynamically sized objects on the stack has always been difficult. You could argue that C special casing fixed length strings to allow that is the odd one out.