-INFINITY is one symbol #63

Closed
opened 2026-10-08 18:43:18 +02:00 by alex-eg · 0 comments
Owner

(var best double -INFINITY) emits _INFINITY: the reader takes
the whole token as a symbol and the leading - is mangled like any
other. (- INFINITY) works. Negative literals like -1 are fine, so
it's only symbolic constants, but the mangled name reads like a typo.


Found with sexc dfafe8b while building vs-map-viewer (from its Sex-field-notes.org).

`(var best double -INFINITY)` emits `_INFINITY`: the reader takes the whole token as a symbol and the leading `-` is mangled like any other. `(- INFINITY)` works. Negative literals like `-1` are fine, so it's only symbolic constants, but the mangled name reads like a typo. --- Found with sexc `dfafe8b` while building vs-map-viewer (from its `Sex-field-notes.org`).
alex-eg added the bug label 2026-10-08 18:43:18 +02:00
Sign in to join this conversation.