3 ms·
> I think my main frustration with stuff like Go and Swift in this case is that their structs are not binary-compatible with C structs in this way because they
by Zanfa 2y ago
> I think my main frustration with stuff like Go and Swift in this case is that their structs are not binary-compatible with C structs in this way because they rearrange things to be better aligned/packed/whatever.
If you need binary-compatibility with C structs in Swift, you can define them in a bridging header.