Re: comments on array proposal


Subject: Re: comments on array proposal
From: Paul Graham (pgraham@cadence.com)
Date: Thu Apr 11 2002 - 09:36:55 PDT


> I thought you didn't like redundancy in an LRM :-)

I don't like describing the same rule twice. Providing two ways to
do things isn't necessarily a bad idea.

> I'd rather have '$range', it would be more forward
> compatible if we decide to allow increments other
> than 1. Keep $left,$right & $increment for now and
> add ranges in 3.1?

How would $range be used? What is the syntax? Would it be a macro
to be used like:

    $range(i, A, 1) {
    }

or

    for (i = $range(A, 1)) {
    }

or what?

Paul



This archive was generated by hypermail 2b28 : Thu Apr 11 2002 - 09:37:56 PDT