Skip to content

Symbols (and keywords) may not contain the : character #1105

Closed
@olavfosse

Description

@olavfosse

Congrats on the 0.3.0 release! I got right to work porting my https://github.com/olavfosse/context to basilisp and encountered two bugs in the process.

  1. Symbols containing a : are split into a symbol followed by a keyword. In basilisp (= ['a:b] ['a :b]), in JVM clojure (= ['a:b] [(symbol "a:b")]).
  2. Basilisp crashes on expressions such as:
#?(:clj (java.util.LinkedList/.addFirst ml x)
       :lpy (.appendleft ml x))

It complains that

Symbols starting with '.' may not have a namespace

This should be allowed within :clj expressions at least.

Aside from that all seems to be working great. I did a search and replace from java.util.LinkedList to java_util_LinkedList, and after that all my tests passed in Basilisp!

Thanks!

With friendly regards

Olav

Metadata

Metadata

Assignees

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