[Newbies] Good commenting style?
K. K. Subramaniam
kksubbu.ml at gmail.com
Mon Aug 2 07:20:06 UTC 2010
On Saturday 31 Jul 2010 6:35:46 pm Kannan Thambiah wrote:
> He suggests to enhance the Object class with a new method "revisit:
> aString", that doesn't have a method body. Instead every subclass of
> Object where we want to leave notes, we'll just send us a message,
> e.g. "self revisit: 'I still need to think about a more effective
> algorithm here'".
Squeak has a flag: method for such memos. e.g.
self flag: #thinkDeeper. "I still need to think ..."
Later one can search for all senders of #thinkDeeper to corral all methods
that need rework.
FYI .. Subbu
More information about the Beginners
mailing list