Open Gleefre opened 4 months ago
Confirmed as failing in abcl-1.9.3-dev
.
Two bugs here (or a bug and a feature):
1) Fixing the reading of such sequences as to not to crash
2) Deciding whether to interpret the reading of ||:xxxx
as the symbol xxxx
in the package named ""
(SBCL, CCL) or as the keyword :xxxx
(ECL, CLASP, CLISP)
About the 2nd point.
IIUC the standard says that ||:xxxx
should be read as a keyword. (See a longer explanation in the WSCL issue.)
However, reading it as a symbol in package named ""
could be a useful extension, since it is the only candidate for reading such a symbol. Furthermore, not defining such an extension would lead to losing print-read consistency.
Note also that a third possible resolution -- defining ""
to be a global nickname for the keyword package, as Allegro CL does -- is not standard compliant. (EDIT: Although strictly speaking, reading it as a symbol in the package named ""
is not standard compliant as well...)
When trying to read
||:xxxx
, abcl crashes:Instead abcl crashes:
Tested on abcl 1.9.2 (latest release)
See also https://github.com/s-expressionists/wscl/issues/63 about the general ambiguity of the
||:xxxx
syntax.