[squeak-dev] Re: becomeForward: alternative

Randal L. Schwartz merlyn at stonehenge.com
Thu Sep 18 17:03:27 UTC 2008


>>>>> "Eliot" == Eliot Miranda <eliot.miranda at gmail.com> writes:

Eliot>     if((options & LINK_OPTION_PRIVATE) == LINK_OPTION_PRIVATE)
object_image-> image.private = TRUE;
Eliot>     else
object_image-> image.private = FALSE;

Eliot> the following takes 25% of the vertical real estate and says it better.

Eliot> object_image-> image.private = options & LINK_OPTION_PRIVATE) ==
Eliot> LINK_OPTION_PRIVATE;

For an endless supply of these, check out thedailywtf.com, which should be
mandatory reading for anyone involved in code creation, review, or
maintenance, with "Don't let your code end up here!" as the goal.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



More information about the Squeak-dev mailing list