Re: Question about Delphi versus other languages

From: Marco van de Voort (marcov_at_stack.nl)
Date: 10/08/04


Date: Fri, 8 Oct 2004 06:43:43 +0000 (UTC)

On 2004-10-07, Jud McCranie <youknowwhat.mccranie@adelphia.net> wrote:
> On Thu, 7 Oct 2004 07:04:53 +0000 (UTC), Marco van de Voort
><marcov@stack.nl> wrote:
>
>>You know the reason for case sensitivity ? Twice the amount of two letter
>>identifiers ;)
>
> Actually 4 times as many.

(Should've been one letter of course. Even I can count to 4 on a good day
:_)

> But I don't like case sensitivity either.
> Although people will disagree with me, I think it is absurd to use "x"
> and "X" as different variable names in the same procedure.

I've seen it sometimes, but only in a certain form: using one case for a
parameter, and the other one for the loopvar that runs from (0|1) to the
maximum specified by the param, so like:

PROCEDURE Doit(X,Y:CARDINAL);

VAR x,y : CARDINAL;

BEGIN
  FOR x:=1 TO X DO
    FOR y:=1 TO Y DO
      (* something with x,y *)
     END;
   END;
END Doit;

And then specifically for (X,Y,Z), since that are the only one letter vars
with a meaning (coordinates)