• 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: Mutability
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mutability


  • Subject: Re: Mutability
  • From: Drew McCormack <email@hidden>
  • Date: Wed, 21 Nov 2001 18:40:56 -0800

The discussion could last really long. I suggest you to read some book about OOP where those problems are often treated.
That's right, it is a discussion we have had several times before on this list. I don't think it is as easy as saying that C++ is better than Obj-C, or vice versa. There are arguments for both.

Basically, as many have said before me, Obj-C just says "Do anything you want; you are responsible for your code; I won't get in the way, unless you do something illegal at runtime". In my experience this leads Obj-C code to be significantly easier to write than C++; you don't have to dot and cross every i or t.

C++ forces you to be extremely explicit in everything you do. This does catch a lot at compile time, but also leads to a lot more code (in my experience) and takes longer to write as a result.

My personal view is that the C++ police exaggerate: they try to scare us into thinking that unless we explicitly state everything, our program will never work. In the end this just means you end up wasting time. If you are a good programmer, and work with good programmers, a lot of the checks of C++ are unnecessary and will just lead to longer development times.

Drew McCormack

--
Julien Dufour
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Mutability (From: Julien Dufour <email@hidden>)

  • Prev by Date: Re: Mutability
  • Next by Date: Re: Standard OS X Compression format
  • Previous by thread: Re: Mutability
  • Next by thread: Re: Mutability
  • Index(es):
    • Date
    • Thread