Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unidiomatic representation of namespaced maps #51

Open
weavejester opened this issue Dec 14, 2019 · 1 comment
Open

Unidiomatic representation of namespaced maps #51

weavejester opened this issue Dec 14, 2019 · 1 comment

Comments

@weavejester
Copy link

Puget represents namespaced maps as:

#:foo {:x 1, :y 2}

But Clojure's printer omits the space between the namespace and the map:

#:foo{:x 1, :y 2}

Puget should probably follow the convention that's used by the Clojure printer.

@greglook
Copy link
Owner

Yeah, this is mainly an artifact of using the :line separator in fipp, which becomes a single space when the form fully fits onto one line:

[:group (color/document this :tag (str "#:" common-ns)) :line map-doc]

The behavior I wanted from that is so that really long namespaces get line broken like this:

#:acme.foo.bar.baz
{:a 123
 :b true}

...rather than like this:

#:acme.foo.bar.baz{:a 123
                   :b true}

I'll see if there's an easy way to get fipp to omit the space in the one-line case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants