• 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
A question about static typing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A question about static typing


  • Subject: A question about static typing
  • From: Chris Gehlker <email@hidden>
  • Date: Sat, 21 Jul 2001 00:14:51 -0700

I've been working my way through "Learning Cocoa" and I can't figure out why
the authors static type some places and not others. I'm trying to convince
myself that they static type where they are more likely to catch errors but
that doesn't seem to be the case.

They particularly like to static type outlets but I can't understand why
outlets are especially error prone. It seems that static typing is less
likely to help here than in the general case since one is more likely to,
for example, send a button message to the wrong button than to send a
textField message to a button.

Am I missing something?

How much do folks really use static typing?


  • Follow-Ups:
    • Re: A question about static typing
      • From: "R. Tony Goold" <email@hidden>
  • Prev by Date: Re: [NSImage lockFocus] and threads
  • Next by Date: Re: [NSImage lockFocus] and threads
  • Previous by thread: Re: [NSImage lockFocus] and threads
  • Next by thread: Re: A question about static typing
  • Index(es):
    • Date
    • Thread