[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DO-NAMED
- To: BUG-LISP at MIT-AI, BUG-LISPM at MIT-AI
- Subject: DO-NAMED
- From: Daniel L. Weinreb <DLW at MIT-AI>
- Date: Sun, 13 Apr 80 01:43:00 GMT
- Original-date: 12 April 1980 20:43-EST
I have a new proposal. In the schemes being discussed, PROG, DO,
DOTIMES and DOLIST must each exist in two forms, either with different
function names (DO versus DO-NAMED) or different syntaxes (DOTIMES
followed by a symbol versys followed by a list). JONL correctly points
out that there may be more such special forms in the future, each of
which would have to have two versions for the same reason.
Rather than duplicating this functionality in all these forms, why
not "subroutinize out" the functionality into a new special form,
which could be called "*CATCH"; you could have merely one version
of each special form, and then put a *CATCH around it if you need
a named escape expression. This will keep the definition of the
language simpler (by keeping down the number of special forms
or different syntaxes of special forms), and will automatically
work for any new special forms that are invented in the future without
putting constraints on their syntax.