|
|
|
|
From: "Andrew Wozniewicz"
Newsgroups: sdforum.want
Sent: Tuesday, June 26, 2007 12:20 AM
Subject: Re: Experimenting with syntax: Pascal-like
Juanca,
> Verbosity is bad, but you want consistency.
> Open "var" and "const" blocks are inconsistent.
So what about a compromise: type, var and cost are statements and can only
introduce a single declaration (even though the declaration may introduce
several identifiers) and therefore do NOT require the terminating END:
var I, J, K: Integer;
var S;
const PI = 3.14;
const E, NatLogBase: Float = 2.72;
On the other hand, types, variables, an constants are reserved words tht
introduce blocks of declarations, and thus require the terminating END:
variables
K, L, M: Integer;
T;
M, N, P: Float;
end;
...
-Andrew
|