Re: cross-platform audio software dev
Re: cross-platform audio software dev
- Subject: Re: cross-platform audio software dev
- From: "Hamish Allan" <email@hidden>
- Date: Sat, 27 Dec 2008 13:31:19 +0000
On Sat, Dec 27, 2008 at 2:32 AM, Marc Vaillant <email@hidden> wrote:
> 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.
In my opinion, coding in Obj-C++ is not particularly natural because
C++ and Obj-C objects cannot be used interchangeably.
If you think that interfaces in C++ are cleaner than those in C, why
do you suppose Apple chose C for Core Foundation?
> 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.
Sure, and for all I know, Apple have written the guts of CoreAudio
(phew, back ontopic!) in C++ and simply presented a C interface to it.
I don't much care, as long as I don't have to use Obj-C++. I don't
mean to "keep" anyone from using C++ for their back-end; I just
wouldn't put it in the same class as C for platform independence.
> Do you program in C++?
Not any more, if I can help it! For too many years, I did so in my day
job. When I discovered Obj-C, it merely confirmed my intuitions about
everything I had disliked about C++.
Hamish
_______________________________________________
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