No. I don't think that works. As someone who has written a LOT of ffi, you need these kinds of types and I'm not sure how to make these more FFI safe in the first place
-
-
yeah, this doesn't obviate the need for CString, but it obviates the need for CString in footgun-prone APIs you control
-
For APIs you control is the key part here. I can already wrap things with a really small wrapper that takes &CStr. Removing the footgun for APIs you don't control is the important bit. If we're relying on all developers doing the thing that is more work we will be sad
- 12 more replies
New conversation -
-
-
I think my understanding here is being inhibited by the fact that I've never fucked with CString, so I'm not even sure what foot guns y'all are alluding too.
- 1 more reply
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.