This is a theoretical question and perhaps not the best place to ask except I wanted to hear the author's perpsective: to what extent could one achieve memory safety (with Haskell FFI + inline-rust) if one were to
- Use inline-rust for all FFI calls.
- Avoid using any
Foreign.Ptr.* calls (or any other functions) which have the capacity to manipulate pointers from outside the purview of the rust compiler.
If one followed these two rules, could one achieve memory safety in a Haskell project that uses lots of FFI?