Re: Thoughts on Objective-C++
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