This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-24
Channels
- # arachne (3)
- # beginners (39)
- # boot (3)
- # cider (91)
- # cljs-dev (56)
- # cljsrn (4)
- # clojure (267)
- # clojure-dusseldorf (1)
- # clojure-estonia (1)
- # clojure-greece (2)
- # clojure-italy (6)
- # clojure-nl (2)
- # clojure-russia (18)
- # clojure-spec (27)
- # clojure-uk (136)
- # clojurescript (19)
- # core-async (2)
- # cursive (6)
- # datomic (17)
- # emacs (2)
- # fulcro (86)
- # graphql (4)
- # hoplon (13)
- # jobs-discuss (7)
- # jobs-rus (1)
- # keechma (34)
- # keyboards (7)
- # leiningen (5)
- # luminus (4)
- # lumo (8)
- # off-topic (13)
- # om (6)
- # onyx (26)
- # re-frame (22)
- # reagent (1)
- # reitit (2)
- # remote-jobs (8)
- # ring (3)
- # ring-swagger (5)
- # rum (8)
- # shadow-cljs (45)
- # specter (6)
- # unrepl (16)
- # yada (15)
Is the "Macros" section on https://www.clojurescript.org/about/differences up to date?
I've got a macro in foo.clj (and other stuff on foo.cljs) but the code that uses the macro can't find it.
Ah. The foo.cljs file needs to require-macros the foo.clj file, but users can work as in regular Clojure.
hi everyone--has anyone ever seen an instance of a clojurescript app that allowed people (either power users or other developers) to write "plugins" (or any kind of extension of the program, i guess is what i mean) in javascript? i anticipate that learning clojurescript is too difficult for my target end users, but JS would be in reach
You can now launch a ClojureScript REPL with this one-liner:
clj -Sdeps "{:deps {org.clojure/clojurescript {:mvn/version \"1.9.946\"}}}" -m cljs.repl.node
for starters, clojurescript doesn’t have java.util.Date
, but whether it’s js/Date or java.util.Date use compare
- it can compare arbitrary types as long as they are comparable
why does advanced compilation screw up things like e.originalEvent.dataTransfer
? this is part of HTML spec
@thedavidmeister pretty sure the originalEvent
isn’t part of the spec?
oh that might be why heh
yeah ok that might be coming in from jQuery
but it's coming from cljsjs/jquery
so i would have expected externs to be there in that case 😕
@thedavidmeister jquery extern seems to be generated automatically, it is possible that the generator doesn't pick up all the properties
-_- that sucks
i'll just use oops for now
jquery 2 extern is written manually and includes originalEvent, looks like jquery 3 extern is missing lots of stuff
yeah this is the 3.x version
i'll stick an issue up at cljsjs