Closed kpoeck closed 3 years ago
I agree that the description sounds as if whitespace is fine, but there are some unclear aspects:
22.1.3.1.4 Printing Complexes
A complex is printed as #C, an open parenthesis, the printed representation of its real part, a space, the printed representation of its imaginary part, and finally a close parenthesis.
#S
.#C #|foo|# (1 2)
and #C #-sbcl :foo (1 2)
legal (and SBCL, for example, indeed accepts it). Such an input would lead to a strange concrete syntax tree.So maybe the best solution is customizable behavior as you suggest.
Hello, looking at the spec in http://www.lispworks.com/documentation/HyperSpec/Body/02_dhk.htm it is simply said that:
C reads a following object, which must be a list of length two whose elements are both reals.
I don't see that "a following object" disallows the space.
See also: https://github.com/sharplispers/parse-number/issues/9
Would be fine If we just could customize eclector not to signal an exception here