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

Reconcile print-str values with str and repr values #682

Open
chrisrink10 opened this issue Aug 11, 2022 · 0 comments
Open

Reconcile print-str values with str and repr values #682

chrisrink10 opened this issue Aug 11, 2022 · 0 comments
Labels
component:basilisp.core Issue pertaining to basilisp.core namespace issue-type:bug Something isn't working

Comments

@chrisrink10
Copy link
Member

In Clojure, (print-str #uuid "...") produces #uuid "..." but in Basilisp print-str is tied directly to str (which in Clojure simply returns the string part of the UUID).

I'm not sure which one is right, but it feels a little inconsistent on the Clojure side. For now, I'm erring on the side of preferring for str to return only the string portion of the UUID and have print-str be slightly wrong.

Maybe at some point, we can deep dive on whether Clojure is in error or if Basilisp should just try harder to match the Clojure side regardless.

Discovered working on #672

@chrisrink10 chrisrink10 added issue-type:bug Something isn't working lang Issue pertaining to Basilisp language modules labels Aug 11, 2022
@chrisrink10 chrisrink10 added component:basilisp.core Issue pertaining to basilisp.core namespace and removed lang Issue pertaining to Basilisp language modules labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:basilisp.core Issue pertaining to basilisp.core namespace issue-type:bug Something isn't working
Projects
Development

No branches or pull requests

1 participant