[squeak-dev] Delay for: 60 seconds vs. Delay forSeconds: 60.

Stéphane Rollandin lecteur at zogotounga.net
Fri Jan 8 10:27:09 UTC 2010


I usually use the
(5 days + 3 hours + 17 minutes) asDelay wait
idiom.

Stef

> I just realized how silly it is to write code like:
>
> (Delay forSeconds: 60) wait.
> (Delay forMilliseconds: 1000) wait.
>
> when we have units available and might as well say:
>
> (Delay for: 60 seconds) wait.
> (Delay for: 5 days + 3 hours + 17 minutes) wait.
>
> What do people think about this? Overkill or just right?





More information about the Squeak-dev mailing list