This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-01
Channels
- # babashka (1)
- # beginners (28)
- # calva (28)
- # cider (8)
- # clj-kondo (1)
- # clojars (4)
- # clojure (20)
- # clojure-australia (1)
- # clojure-europe (13)
- # clojure-uk (2)
- # clojurescript (2)
- # conjure (4)
- # core-async (4)
- # cryogen (3)
- # datomic (17)
- # fulcro (3)
- # helix (45)
- # malli (9)
- # off-topic (6)
- # pathom (3)
- # re-frame (13)
- # reitit (17)
- # sci (1)
- # shadow-cljs (9)
- # sql (6)
- # tools-deps (11)
- # vim (17)
is it correct that (at least currently), transforming enums from json does not yet correctly transform them to keywords if necessary ?
well I wouldn’t say always — but at least I would expect it to convert it if that leads to a valid enum value
@lmergen right. There is no type inferrer with enums. They could be anything [:enum 1 "2" :3 '4]
. If you know the type, you can hint it: [:and keyword? [:enum :a :b :c]]
and they transform correctly