Both #swiftlang and #rustlang have generics and enums with associated data. Is there any chance that they can interoperate without C FFI?
-
-
Replying to @alexito4
without #[repr(c)] the layout of our enums is undefined. And our calling convention isn't either. So for now, no, sadly.
1 reply 0 retweets 0 likes -
Replying to @rustlang
totally understandable
i was just curious to know what woukd be required to bave a modern FFI for modern languages1 reply 0 retweets 0 likes -
Replying to @alexito4
yeah, mostly just "agree on things!" Sadly, it's not a simple problem
1 reply 0 retweets 0 likes -
Replying to @rustlang
I can imagine. Making a compiler seems easy compared to make agreements
thanks for the replies
1 reply 0 retweets 1 like
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.