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

Frank Shearar frank.shearar at angband.za.org
Fri Jan 8 07:32:41 UTC 2010


Andreas Raab wrote:
> Hi there -
> 
> 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?


I reckon the latter looks really nice. Just that bit easier to read. 
Especially the "5 days + 3 hours" part!

frank



More information about the Squeak-dev mailing list