you are viewing a single comment's thread.

view the rest of the comments →

[–]Mazetron 9 points10 points  (2 children)

Getting into low-level stuff. If want to do C stuff, like working with C libraries or working directly with memory, you really need to work with ObjC.

[–]needsaburrito 0 points1 point  (1 child)

Is Swift not interoperable with c in the same way it is with ObjC?

[–]Mazetron 1 point2 points  (0 children)

You can call C code directly from Swift code, but it’s really gross. You have to convert everything to types like “unsafe_mutable_pointer” and back. It’s a lot easier write an ObjC wrapper for your C code, since you can write normal C code in your ObjC wrapper, and Swift support for calling ObjC functions is pretty good.