Theocacao
Leopard
Design Element
Comment on "Objective-C, Ruby and Python for Cocoa"
by Ken — Feb 20
I actually like the objective-c syntax.

Method invocation:
[object makeDrink:@"Milk" with:@"Chocolate"];
Variable access:
id theDrink = object.drink;
Its the difference between a verb (action) and noun (variable), and its expressed using different syntax. I can know at a glance when code is bracketed, I'm invoking an action, and when I'm using dot-syntax I'm accessing a variable.

The difference between
object.drink
and
[object drink]
become immediate. What's so hard about that??
Back to "Objective-C, Ruby and Python for Cocoa"
Design Element

Copyright © Scott Stevenson 2004-2015