Theocacao
Leopard
Design Element
Comment on "CocoaHeads: Objective-C 2.0"
by Russell Finn — Sep 15
he will want to add those complex numbers with z + w, instead of ComplexNumber.Add(z,w)

How would your hypothetical scientist feel about using actual Objective-C syntax, which would look more like [z plus: w]? I admit it's not the same as z + w, but it's more readable than what you posted. (Or he could use Objective-C++ to combine his matrix class library with a Cocoa UI, and have the best of both worlds.)

It would be easier to take your criticism more seriously if it looked like you'd actually investigated the language, instead of running down a bullet list looking for your favorite missing features.
Back to "CocoaHeads: Objective-C 2.0"
Design Element

Copyright © Scott Stevenson 2004-2015