Re: Future Objective-C changes
Re: Future Objective-C changes
- Subject: Re: Future Objective-C changes
- From: "Florian G\. Pflug" <email@hidden>
- Date: Sat, 17 May 2003 02:53:19 +0200
On Fri, May 16, 2003 at 09:01:10AM -0500, Chris Hanson wrote:
>
Hold it right there. Collections *are* types. This is the central
>
design flaw of the STL, assuming that the type of the objects in the
>
collection should propagate to the collection's type.
>
>
Many of us use heterogeneous collections a *lot*.
Yes, but I guess the way the STL does things is the best you can get from
C++. I believe C++ is for people who want very strict type checking, and for
them STL is exactly the right thing. For the rest of us, C++ might just not
be the language of choice ;-)
>
> without having to programmatically check all the time and (b) cutting
>
>down on coding time as I don't have to create lots of different
>
>methods for different parameter types.
>
>
Why do you have to do this? Using Objective-C's dynamism properly cuts
>
down on coding time far more than crutches to make dealing with strict
>
compile-time types easier.
And, you could always write some macros (or even functions - I believe
classes are first-class objects in obj-c...) that save you some typing...
greetings, Florian Pflug
_______________________________________________
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.