Skip to content

Adding a character macro on digits breaks #x #1673

Open
@stassats

Description

@stassats
(let ((*readtable* (copy-readtable)))
  (set-macro-character #\1 (lambda (s char) 1) t) ;; just imagine a more complete reader
  (read-from-string "#x1"))

Eclector says "The character 1 is not a digit in base 16." because its eclector.readtable:syntax-type is not :constituent.

I can't say what the standard wants, but all other lisp are okay with that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions