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/code problems #103

Open
genmeblog opened this issue Jun 12, 2024 · 3 comments
Open

kind/code problems #103

genmeblog opened this issue Jun 12, 2024 · 3 comments

Comments

@genmeblog
Copy link
Member

Hi! I see two issues regarding interpretation of code blocks by clay.

First: only strings are accepted. I propose acceptation of anything (but sequence) and applying str on content.
Second: only vectors are accepted for multiple code snippets, should be changed to any sequential (here).

(kind/code 1.222)
;; exception
(kind/code "1.222")
;; ok
(kind/code ["1.22" "3.33"])
;; ok
(kind/code (list "1.22" "3.33"))
;; exception
@daslu
Copy link
Member

daslu commented Jun 12, 2024

@genmeblog
Thanks.

I'm wondering about your str proposal.
What is your use case?
(And do you maybe find kind/pprint useful in such cases?)

@genmeblog
Copy link
Member Author

Actually there are three options for that and these options give different results. kind/pprint wraps the value into the vector.

image

@daslu
Copy link
Member

daslu commented Jun 15, 2024

Ther new version 2-beta11 supports lists as you proposed.
The other parts need more discussion.

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