logo       

Re: A Question of Style: msg#00164

lang.smalltalk.squeak.beginners

Subject: Re: A Question of Style

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise