Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
grayprog
· 4y ago · 0 comments
I see, so you're just writing the bridge code yourself. OK, I do the same in Objective-C++, so at least it gives me an object-based interface, as well. But saving this step and having a direct Swift <-> C++ would be helpful.
Comments
[–]
jb1991
4y ago
Yeah for me it's just about keeping Obj-C out of the project. It's enough to have two languages, I don't want to unnecessarily add a third.
[–]
quux
4y ago
Don't you already have 3 languages to think about? Swift, C and C++?
[–]
jb1991
4y ago
The C API is usually syntactically valid C++, so I don’t think of it that way. It’s just an API. Implementation is still in just two languages.