Specification of Legal Identifiers |
Design questions Semantics | Home |
The Question |
From the point of view of the semantics, there is no reason to limit the set of identifiers
(i.e. names of elements). Textual languages impose limits for the sake of parsing, but this
isn't a concern for Eidola -- there is no theoretical prohibition against naming Eidola
elements with non-alphanumeric characters, or spaces and control characters, or Korean
characters, or even audio ("After the tone, please speak the name of your variable...").
Of course, there are practical limits to what a notation can reasonably display or ask a user to input. And while parsability isn't a problem for the semantics, it may still be a problem for a notation -- a programmer will have to type in code at some point! Added to this is the problem that the problem that certain kinds of identifiers may not be suitable for all representations (audio in XML?), or even all hardware. And names may carry semantic weight in storing references between namespace, so it's important that all notations be able to deal meaningfully with all identifiers. It makes sense, therefore, to place some limits on the set of identifiers. It seems a shame, however, to prevent programmers from using special symbols suited to very specific purposes which the semantics cannot anticipate. There several possible approaches:
|
The Verdict |
...will have to wait until code entry takes shape, which won't happen until the algorithmic semantics exist and we have at least some idea of how the notations will deal with them. |
Design questions | Semantics | Home | Copyright 2000-2001 Paul Cantrell |