Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift C++ interop #39

Open
1muhgcmg opened this issue Jan 19, 2025 · 1 comment
Open

Swift C++ interop #39

1muhgcmg opened this issue Jan 19, 2025 · 1 comment

Comments

@1muhgcmg
Copy link

C++ interoperability is a new feature in Swift 5.9. A great variety of C++ APIs can be called directly from Swift, and select Swift APIs can be used from C++.

What do you think about this feature of Swift?

@IsaacShelton
Copy link
Owner

IsaacShelton commented Jan 22, 2025

It is nice they pretty much get it for free since Swift is so heavily integrated with clang. It also brings a lot of baggage and very slow compilation though. Ideally we would support C++ too, but for now just C is hard enough to start.

Also even without any technical limitations, figuring out a way to integrate C++ semantics in a way that makes sense is not easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants