|
USM LINKS Computer Science
WEB PAGES CMInfo
RESOURCES Math Resources |
SYMPOSIUM
MINISYMPOSIA
|
December 4-5, 1998
University of Southern Mississippi
Hattiesburg, Mississippi
W. Douglas Maurer
The readability of future algebraic languages may be considerably improved by the use of two features which seem so far to have been ignored. The first is the use of indentation in a meaningful way. As a simple example, consider how the construction
if condition
statement-1
else
statement-2
statement-3
next-statement
improves readability. The else-part now consists of all statements between
'else' and the next statement (in this case statement-2 and statement-3)
which are at an indentation level higher than that of 'else'. All
statements between 'if' and 'else' at a higher indentation level that that
of 'if', in a similar way, form what is usually called the then-part,
although there is no longer any need for the word 'then'. Similarly, there
is no need for parentheses around 'condition' (as in C); 'begin' or 'end'
(as in Pascal); END IF (as in Ada); curly brackets (as in C); or indeed any
distinction whatsoever between a single statement and more than one
statement in a group.
The second feature suggested here is the use of two or more blanks
in a row as a separator, much like the semicolon in languages of today,
with the semicolon reserved for special usages. As an example, consider the
C-like syntax
for (initialization; test; increment)
statement-1 statement-2 statement-3
next-statement
Here there are two blanks between statement-1 and statement-2, and
similarly between statement-2 and statement-3. No semicolons are needed,
and two blanks are actually faster to type than a single semicolon. More
than two blanks in a row are treated as if there were only two, and hence
there cannot be two such separators in a row. This is why we continue to
use the semicolon before and after 'test', since 'test' can be null and
hence two semicolons may still occur here in a row.
The full paper will concern itself with the following issues:
To obtain more information about the meeting send e-mail to: fscc98@pax.st.usm.edu.