Open swift-ci opened 8 years ago
FWIW, Swift's runtime has a very tiny initialization cost (two static constructors, plus one more if you use Dispatch on an Apple platform), so there's not much need for a swift_init today. (Swift already works fine when linked with someone else's main function.) swift_exit is a little more interesting, but I'm not sure you actually need it in practice—how often do you shut down part of your program in a way you'd be able to start up again, rather than using a separate process?
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Standard Library | |Labels | New Feature, Runtime | |Assignee | None | |Priority | Medium | md5: dbf0d6ac2128629b9a736bc6d1d99367Issue Description:
This is a feature request for having a main program not written in Swift.
Proposed API (based on Haskell):