Let's talk about making portable libraries with Swift clients. Has anyone made a tool yet to autogen Obj-C wrappers for C++ interfaces?
Conversation
Now you're just hurting me on purpose.
1
Do you have a better idea?
1
I have lofty ideas about how our code should be arranged, & C++ only factors in when you absolutely need cross-platform OOP.
1
You'd prefer C as lingua franca?
2
I get shit on for it,but yes. I've always found good C code to be more readable than C++, but "good" is the hard part there.
2
1
Yeah, I don't strongly disagree. I'm obviously not an OOP adherent by any means but find it easier to write good interfaces in C++
1
1
Good OOP interfaces? Or interfaces in general?
1
No, interfaces in general. Generics, references, lambdas, and better const semantics really help.
2
[…]But a good C codebase is maintainable until the end of time. I don't know if I would say the same about even the best C++.
1
1
Replying to
(& to be clear, I'm *not* knocking C++. I use it every day. C's just my personal preference. Not trying to start a flamewar.)
1

