Re: Obj-C vs Java
Re: Obj-C vs Java
- Subject: Re: Obj-C vs Java
- From: Chris Gehlker <email@hidden>
- Date: Mon, 23 Jul 2001 07:28:45 -0700
On 7/22/01 4:48 AM, "John Hvrnkvist" <email@hidden> wrote:
>
Java: too strict.
>
Objective-C: too lenient.
John's detailed reply was very good but to me he seems to overstate the
difference between Java and ObjC a little bit here. Neither language is type
safe. Both pass objects of user/library/framework defined types and rely on
the programmer to keep track of the real type of the object. Both languages
use whatever type information the programmer provides in the same way. The
only differences are that Java requires types in some places where ObjC
accommodates them and Java issues errors in some places where ObjC issues
warnings.
If you are coming to ObjC from Java the differences may look pretty big but
if you are coming from C++ or some other language with real user defined
types, the differences look small.