3 ms·
I wonder how Go can be better than Swift for iOS development.
by namelezz 11y ago
I wonder how Go can be better than Swift for iOS development.
- danieldk 11y agoI think the attractiveness is that you can share Go code between applications on different platforms, which is not possible with Swift as long as the compiler and standard library is not open source (or generally available).
- kainosnoema 11y agoIt may not always be better since you'll likely never be able to call from Go into Cocoa libs, but if you can write a shared library and use it on the server, iOS and Android, then it's a big win. Linking a Swift app against the shared Go library and calling directly from Swift into Go sounds pretty great to me.
- fit2rule 11y ago>call from Go into Cocoa libs It can be done, thus: #cgo LDFLAGS: -Wl,-U,_iosmain,-U,_PopUpDialogBox Any developer who wants to do this needs only to create these #cgo statements for whatever Cocoa API they want to use, and they become available from the Go context ..
- _ak 11y ago> It may not always be better since you'll likely never be able to call from Go into Cocoa libs IIRC, Go can call any Objective-C code through cgo.
- pjmlp 11y agoI would never exchange the power of a ML based language with first class support from the OS vendor, by Go.