Elektrine lite

← Feed

@jrose@social.belkadan.com

Post #3694158

2026-03-26 20:30 UTC

Context: Swift has not officially had a way to expose plain old functions to C until now. Why? Because it had Objective-C interoperability first, and so deciding whether C functions should support everything ObjC does or not was…complicated. You can read about it here: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0495-cdecl.md

Replies (2)

  • @penryu@hachyderm.io 2026-03-26 22:36

    @jrose@social.belkadan.com Thank you for calling this out. A lot of people don't realize just how much of Swift's design was influenced by the need for ObjC interop.

    Open ##3694160

  • @curt@gts.curttech.com 2026-03-27 13:57

    @jrose@social.belkadan.com oh gosh, yes please. I once had to wrap my Swift code in Obj-C then that was to be called from C. Not fun.

    Open ##3694165