From: "Andrew Wozniewicz"
Sent: Tuesday, June 26, 2007 12:20 AM
Subject: Re: Experimenting with syntax: Pascal-like
> 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;
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:
K, L, M: Integer;
M, N, P: Float;