• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Future Objective-C changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Future Objective-C changes (From: David Cittadini <email@hidden>)
 >Re: Future Objective-C changes (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: OT: WWDC
  • Next by Date: Re: [Q] How do I Create an NSEvent Using Runtime Functions?
  • Previous by thread: Re: Future Objective-C changes
  • Next by thread: Re: Future Objective-C changes
  • Index(es):
    • Date
    • Thread