This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-06
Channels
- # announcements (3)
- # beginners (8)
- # calva (17)
- # cider (3)
- # clj-kondo (1)
- # cljs-dev (7)
- # clojure (11)
- # clojure-dev (9)
- # clojure-europe (1)
- # clojuredesign-podcast (4)
- # clojurescript (10)
- # conjure (13)
- # datomic (3)
- # emacs (3)
- # figwheel-main (1)
- # fulcro (12)
- # leiningen (8)
- # meander (20)
- # off-topic (85)
- # pathom (1)
- # shadow-cljs (39)
- # spacemacs (7)
- # tools-deps (44)
- # xtdb (5)
Does anybody know if cljs defrecords are supposed to support fields named constructor
, and if so, whether an issue about this has already been filed?
details here: https://github.com/plumatic/schema-generators/issues/22#issuecomment-687827393
@gfredericks there is a similar problem with default
as a field name. I can't find the issue though. basically if the type of the record is known it emits "optimized" property access instead of going through the keyword. since constructor
(or default
) are reserved words it gets munged to .-constructor$
and thus is always nil
@thheller do you know whether it's acknowledged as an issue that should be fixed?
cool that's useful, thanks