• 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: Thoughts on Objective-C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thoughts on Objective-C++


  • Subject: Re: Thoughts on Objective-C++
  • From: Turtle Creek Software via Cocoa-dev <email@hidden>
  • Date: Mon, 11 Nov 2019 13:46:36 -0500

>> Obj-C++ *is* a superset of C++, so I’m not sure what you’re wishing for.

In source files Obj-C++ works great.  No complaints there. But headers and
method declarations are Obj-C, which is C plus its own additions.

That means no use of const. All pointers instead of & references.  Both of
those are good at turning run-time errors into compile-time.  No multiple
inheritance, so we had to duplicate code in several places.  No
initializing members in headers, so mystery bugs if you initialize in the
wrong type of init.  No public/private to manage access. Etc. It was like
going back to the early 90s. Doing without features we learned to use the
hard way.

Make Objective-C a complete superset of C++ rather than C and it gains all
the fantastic work that has gone into C++ over the past 20 years. Take
advantage of folks from many places working on the language, not just half
or 1/4 of the engineers at Apple.

Casey McDermott
TurtleSoft.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Thoughts on Objective-C++
      • From: Jens Alfke via Cocoa-dev <email@hidden>
    • Re: Thoughts on Objective-C++
      • From: "Gary L. Wade via Cocoa-dev" <email@hidden>
References: 
 >Thoughts on Objective-C++ (From: Turtle Creek Software via Cocoa-dev <email@hidden>)
 >Re: Thoughts on Objective-C++ (From: Jens Alfke via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Preventing app from being restored or saving info in "Saved Application State"
  • Next by Date: Re: Thoughts on Objective-C++
  • Previous by thread: Re: Thoughts on Objective-C++
  • Next by thread: Re: Thoughts on Objective-C++
  • Index(es):
    • Date
    • Thread