clay icon indicating copy to clipboard operation
clay copied to clipboard

kind/pprint prints the result as a vector

Open genmeblog opened this issue 1 year ago • 3 comments

kind/pprint is presented as a vector.

(kind/pprint (* 3 4 5 6 7))
;; [2520]

genmeblog avatar Jul 22 '24 12:07 genmeblog

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

whatacold avatar Sep 07 '24 16:09 whatacold

@whatacold Thanks, indeed that is the reason.

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

daslu avatar Sep 07 '24 21:09 daslu

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.

whatacold avatar Sep 08 '24 15:09 whatacold