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

kind/pprint prints the result as a vector #125

Open
genmeblog opened this issue Jul 22, 2024 · 3 comments
Open

kind/pprint prints the result as a vector #125

genmeblog opened this issue Jul 22, 2024 · 3 comments

Comments

@genmeblog
Copy link
Member

kind/pprint is presented as a vector.

(kind/pprint (* 3 4 5 6 7))
;; [2520]
@genmeblog genmeblog changed the title kind/pprint kind/pprint prints the result in a vector Jul 22, 2024
@genmeblog genmeblog changed the title kind/pprint prints the result in a vector kind/pprint prints the result as a vector Jul 22, 2024
@whatacold
Copy link

whatacold commented Sep 7, 2024

Hi,

This looks like a problem (maybe a feature?) coming from kindly: https://github.com/scicloj/kindly/blob/0e219f3b8299f5defdd40ac3d15ccddd29bf1f25/src/scicloj/kindly/v4/api.cljc#L18

@daslu
Copy link
Member

daslu commented Sep 7, 2024

@whatacold
Thanks, indeed that is the reason.

Whether we should change this behavior somehow is a good discussion to have.

@whatacold
Copy link

I think maybe one way is to attach a flag to its metadata in attach-meta-to-value, for example, :origin-primitive? true, and then in the upstream app like clay, we can act accordingly.

P.S. I found that it's working in clay, even though I still didn't find out why it works.

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

3 participants