This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-11
Channels
- # architecture (1)
- # babashka (61)
- # babashka-sci-dev (1)
- # beginners (85)
- # calva (112)
- # clj-kondo (279)
- # cljdoc (16)
- # cljs-dev (15)
- # cljsrn (7)
- # clojure (168)
- # clojure-europe (36)
- # clojure-nl (10)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojured (1)
- # clojurescript (20)
- # core-async (16)
- # crypto (2)
- # cursive (13)
- # datomic (25)
- # events (7)
- # fulcro (21)
- # google-cloud (3)
- # graalvm (2)
- # graalvm-mobile (2)
- # gratitude (3)
- # helix (20)
- # honeysql (4)
- # hugsql (15)
- # introduce-yourself (15)
- # leiningen (2)
- # lsp (24)
- # luminus (22)
- # malli (21)
- # meander (11)
- # midje (1)
- # other-languages (1)
- # pathom (8)
- # re-frame (5)
- # reagent (5)
- # releases (2)
- # reveal (1)
- # shadow-cljs (18)
- # spacemacs (17)
- # sql (9)
- # tools-build (12)
- # tools-deps (4)
- # vim (12)
What's the reason that this doesn't work in self-hosted?
cljs.user=> (defmacro foo [name] `(def ~name))
#'cljs.user/foo
cljs.user=> (foo x)
Use of undeclared Var cljs.user/x at line 1
@borkdude This old FAQ / rationale says essentially the same https://github.com/clojure/clojurescript/wiki/Bootstrapped-ClojureScript-FAQ#with-bootstrapped-clojurescript-can-we-now-have-namespaces-that-mix-both-macros-and-functions
@dnolen There’s a couple of small changes on https://clojure.atlassian.net/browse/CLJS-3347 that are in a new patch, if you’re willing to apply it to that branch that you created for it? (is the process that I tell you about the patch?)
Also, I created the https://clojure.atlassian.net/browse/CLJS-3348 ticket a little while ago to bring over some of the new Clojure 1.11 functions (not iteration
, which Mike did). There’s a patch attached to that as well
Asking for clj-kondo, is this intentionally supported in CLJS?
(ns dude)
(def foo 1)
(let [bar #time/date foo]
(prn bar))
if the time/date
data reader is identity
, what should the above return? @alexmiller has mentioned that data readers should read literals and one should not use reader functions for macro-like behavior_._
data_readers.cljc:
{time/date clojure.core/identity}
Related issue: https://github.com/clj-kondo/clj-kondo/issues/1579