[Newbies] A Question of Style

Ralph Johnson johnson at cs.uiuc.edu
Fri Mar 30 17:58:21 UTC 2007


setPriceOf:to: is better than priceOf:is: because it is a command.
In general, messages that have side effects should be commands.

Setting accessor methods are a time-honored exception.

-Ralph


More information about the Beginners mailing list