• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cross-platform audio software dev
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: cross-platform audio software dev
      • From: Marc Vaillant <email@hidden>
References: 
 >cross-platform audio software dev (From: Maissam Barkeshli <email@hidden>)
 >Re: cross-platform audio software dev (From: John Michael Zorko <email@hidden>)
 >Re: cross-platform audio software dev (From: "Hamish Allan" <email@hidden>)
 >Re: cross-platform audio software dev (From: Marc Vaillant <email@hidden>)

  • Prev by Date: Re: cross-platform audio software dev
  • Next by Date: Variable naming convention in Core Audio
  • Previous by thread: Re: cross-platform audio software dev
  • Next by thread: Re: cross-platform audio software dev
  • Index(es):
    • Date
    • Thread