l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 7: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2002 Jul 26 16:50

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] objective C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] objective C



Peter Jay Salzman writes:
 > hola,
 > 
 > i started looking at objective C.  to my eyes, the grammar is worlds
 > simpler than C++.  as far as i can tell, it adds only 1 piece of syntax
 > to the C language -- passing a message to an object
 > 
 >    [Object doSomethingWith: anotherObject];
 > 
 > all the other OO enhancements are simply more keywords.  so the syntax
 > is pretty much the same as C.  people who use it say that objective C is
 > a proper superset of C (as opposed to C++).
 > 
 > has anyone here used objective C?  it looks really interesting.

I have, and it is.

It's basically C plus OO classes. It's good if you want C, and want
objects (without having to fake 'em), but don't like various things
about C++ (e.g., references, lack of strictly defined behavior on
casting char* to unsigned char* or vice-versa, C++ iostreams'
inability to repoen a text stream as binary, Stroustrup's massive
ego...).

It's C with just a *little* OO sugar. One thing that C++ benefits from
that neither C nor Objective C have is templates, and the Standard
Template Library, which can be quite handy sometimes. While still a
horribly screwy mechanism with compared to more elegant, and even more
general equivalents such as Ada's, it provides much better
generalization than C can manage with (say) macros.

Lest anyone try to determine my stance from my comments above, let me
state that I really am language-agnostic for the most part. C is
really my favorite language, if for nothing else than having spent
more time on it than on any other language. It is a horrible language
in may respects - but it never gets in your way, unlike most other
languages I've known. C++ has added a lot of elegance to C, and about
an equal amount of its own brand of horribleness as well. Which one I
use depends a lot on what I'm doing. When being able to work somewhat
closer to the problem using OO classes, the STL and other abstraction
techniques is strong enough to outweight the control freak in me that
just loves to use C for everything, well I use C++.

I'd probably use Objective C more, except for the fact that it has no
true standard (though it must have a spec, somewhere), and isn't
as widespread as either Objective C or C++.

My 2,
Micah
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.