Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the purpose of static typing?



Additionally, as a rule of thumb, the more dynamic typing you use, the
more sluggish your user experience will become.

- Philip


On Wednesday, July 24, 2002, at 07:18 PM, Nicholas Riley wrote:

> *This message was transferred with a trial version of CommuniGate(tm)
> Pro*
> On Wed, Jul 24, 2002 at 08:00:49PM -0400, email@hidden wrote:
>> Is there any purpose in static typing besides better compile time
>> checking? In other words, would it not be better (for dynamism) to
>> simply declare everything as `id'?
>
> Of course, but you're likely to create many more bugs that way. Even
> Smalltalk IDEs do compile-time checking to see if the methods you're
> invoking are defined somewhere in the image, to avoid typos etc. And
> you'll need some other convention to indicate the expected type of
> methods and instance variables. Personally I like being able to name
> my methods and variables whatever I want, so they don't necessarily
> have to incorporate type information as a matter of convention the way
> they do in Smalltalk.
>
> Use id when you need it, otherwise statically type.
>
> --
> =Nicholas Riley <email@hidden> |
> <http://www.uiuc.edu/ph/www/njriley>
> Pablo Research Group, Department of Computer Science and
> Medical Scholars Program, University of Illinois at Urbana-Champaign
> _______________________________________________
> 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.
_______________________________________________
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: What is the purpose of static typing? (From: Nicholas Riley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.