Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
- Subject: Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
- From: Izidor Jerebic <email@hidden>
- Date: Fri, 4 Nov 2005 10:42:31 +0100
On Nov 4, 2005, at 3:50 AM, Jerry Krinock wrote:
Is it Bad Programming Practice to use these C++ Shorthand
Constructs in a
Cocoa project? I don't have that many of them and I could easily
fix them
if that was advisable.
There is one undisputable factor that weighs heavily against C++ - if
you use C++ in your project, you have more troubles (because of the
complex ABI and language issues) with supporting various versions of
MacOS X, frameworks, libraries, compilers, etc. Mere presence of C++
causes that.
Note that I did not say that it is impossible or something like that
- it is just an extra amount of thinking (work) which you can easily
avoid if you use just plain C.
Also, mixing two OO languages does not help readibility/
productivity, since your mind needs to work in two different worlds.
And finally, Cocoa is designed for plain C (i.e. Objective-C). It is
best to use as intended (see Cocoa Java).
IMHO if your Cocoa project does not benefit greatly from C++ or
require it for legacy reasons (and from what you write it seems not),
you'd better stay with the plain C. Remember - KISS always helps you.
izidor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden