Skip to content

Expressions not valid in hash-set creation #2

@mx

Description

@mx

Looks like #{...} can often only accept immediate values. For example:

$ sbcl
* (require :reader)
NIL
* (require :hash-set)
NIL
* (reader:enable-reader-syntax 'get-val 'hash-table 'not 'string 'describe 'array 'set 'run-program)
#<READTABLE {100261DBA3}>
* (defvar x #{(cons 1 2)})

debugger invoked on a TYPE-ERROR @536416CB in thread
#<THREAD "main thread" RUNNING {1004DC81F3}>:
  The value
    2
  is not of type
    LIST

;; ...

* (defvar s #{:a 1 :b 2})
S

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions