Re: Future Objective-C changes
Re: Future Objective-C changes
- Subject: Re: Future Objective-C changes
- From: David Cittadini <email@hidden>
- Date: Fri, 16 May 2003 23:38:28 +1000
Dynamic typing provides the freedom to do what you want when you want.
Static typing says you can only do what the rules allow. Generic
programming says you are almost free but the inherent rules mean you
will never quite get there. Surely all approaches have their place.
David.
Message: 12
Date: Fri, 16 May 2003 00:57:05 -0600
Subject: Re: Future Objective-C changes
From: Jeff <email@hidden>
To: email@hidden
On Friday, May 16, 2003, at 12:20 AM, David Cittadini wrote:
Conversely, Objective-C also supports static typing so that would mean
that parameterized types are needed as well?
I don't believe so. Parameterized types / generics are needed in
languages which don't have dynamic typing, like C++, Ada, etc. If you
have an urge to use generics, then it seems there's already a solution
in Obj-C through dynamic typing. If you want to strongly type
something, then why use generics to begin with? Generics is a work
around for statically-typed languages, so not something a language
would want to add if it didn't have to. (Correct me if I'm mistaken.)
-Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.