Re: cross-platform audio software dev
Re: cross-platform audio software dev
On Fri, Dec 26, 2008 at 08:32:02PM +0000, Hamish Allan wrote:
> On Fri, Dec 26, 2008 at 4:50 AM, John Michael Zorko <email@hidden> wrote:
>
> > If you want to do
> > cross-platform development, it's best to keep as much of the code in a
> > platform-agnostic language (like C / C++) as possible, and only use ObjC
> > (Mac) / C# (Windows) when you need to
>
> Why would you ever choose C++ for this purpose? Certainly it's less
> natural in Objective-C to couple to a C++ backend than to a C one, and
> I'm willing to bet the same is true of C#.
In what way is it less natural? I think that John has the right idea
here. One can likely write cleaner, more maintainable interfaces (not to
mention core implmentation) for their code in C++ than C that can easily
be bridged to objc via objc++. More natural? I don't know, but
certainly better programming practice.
Why keep someone from using C++ simply because it will be bridged to
objc in one port of the application? If you have some aversion to
objc++, then your high level API can be C around your C++ if you really
want.
Do you program in C++?
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden