On Sat, Nov 16, 2002 at 11:12:15PM -0800, Dave Storrs wrote:
> Hmm, interesting. Just as an aside, this gives me an idea: would it be
> feasible to allow the base to be specified as an expression instead of
> a constant? (I'm pretty sure it would be useful.)  For example:
> 
> 4294967296:1.2.3.4      # working with a really big base, hard to grok
> 2**32:1.2.3.4           # ahhhhh, much better
> 
> 24*60*60:10             # one day in seconds, easy representation

And the advantage of that over  24*60*60*10 would be ?

> Or how about run-time evaluated versions?
> 
> # Set a timer to run for either a day or an hour, depending 
> $timer = 60*60*($use_days ? 24 : 1):10   

Then it is no longer a literal is it.

Are we not just getting too carried away with all this base
of literals.

I also think -documentation is the wrong place to discuss this.

Graham.

Reply via email to