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

Get / Set Data Type inconsistent #287

Closed
zerg000000 opened this issue Oct 20, 2023 · 1 comment
Closed

Get / Set Data Type inconsistent #287

zerg000000 opened this issue Oct 20, 2023 · 1 comment

Comments

@zerg000000
Copy link

Is it the expected behavior?

(car/wcar {} (car/set "a" 1))
(car/wcar {} (car/get "a"))
;; => "1"
;; set integer, but we get string back

(car/wcar {} (car/set "b" {:a 1}))
(car/wcar {} (car/get "b"))
;; => {:a 1}
;; set map, we get map as expected
@ptaoussanis
Copy link
Member

@zerg000000 Hi Albert! Yes, that may seem a bit confusing but is expected behaviour.

Would recommend checking out the Getting started guide.

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

No branches or pull requests

2 participants