Skip to content

Clojure compatibility: # symbols in keywords #1149

Closed
@ikappaki

Description

@ikappaki

Hi,

there is a compatibility issue with Clojure in Basilisp that # symbols are not allowed in symbol names:
No data reader found for tag #id

To reproduce,
Open up the REPL and attempt to enter a symbol with containting a # symbol, you get a no data reader found for tag:

basilisp.user=> :div#id

  exception: <class 'basilisp.lang.reader.SyntaxError'>
    message: No data reader found for tag #id
       line: 1:7

The same works in Clojure:

user=> :div#id
:div#id

and for symbols in Basilisp

basilisp.user=> 'div#id
div#id

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:readerIssue pertaining to Basilisp reader moduleissue-type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions