Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: help with function utilising "extended life-time" words ..

From: joel:neely:fedex at: 2-Oct-2003 7:04

Hi, Petr, Petr Krenzelok wrote:
> Thanks all for answers! I was just thinking in a bit different way - I > did not want to enclose measured task into special block to prevent > myself from forgetting to include ending bracket :-) >
However, the presence of explicit brackets makes it clear precisely what you mean when inserting or removing a call to the timer. Without that hint, presence/absence of a call could affect the results of other calls in hard-to-track-down ways.
> So, my initial intention was to have how-long? just marking current time > substracted from last function call ... From the various aproaches I saw > I like object based the most probably ... do not why though :-) >
I prefer to use objects to manage persistent state precisely because that is what objects were intended for in the first place. The amount of state can scale up gracefully as one's design evolves (e.g. add one more attribute to the object) without requiring lots of tricky digital plumbing (e.g. the REDUCE... issue at the beginning of this thread). Just MHO, of course! ;-) -jn-