This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-30
Channels
- # beginners (23)
- # boot (3)
- # cider (5)
- # clara (12)
- # cljs-dev (15)
- # clojure (18)
- # clojure-spec (24)
- # clojure-uk (23)
- # clojurescript (24)
- # data-science (2)
- # datascript (1)
- # datomic (12)
- # fulcro (51)
- # jobs (1)
- # jobs-discuss (1)
- # leiningen (1)
- # nrepl (1)
- # off-topic (1)
- # onyx (2)
- # re-frame (6)
- # reagent (14)
- # rum (1)
- # shadow-cljs (12)
- # spacemacs (3)
- # specter (1)
- # tools-deps (37)
- # vim (2)
I blogged about my answer for the keypaths here http://conjobble.velisco.com/2018/06/01/keypaths.html
is there any difference between (. System getenv "LANG")
and (. System (getenv "LANG"))
?
doesn't appear to be: https://clojure.org/reference/java_interop#_the_dot_special_form
ah yeah I looked there but didn't read it closely enough the first time. Just looking at the source to clojure.core the second form is preferred which reads a little confusingly since it appears the function being defined is being recursively called (for example the definition of cons
at the top).
(.foo bar baz)
for instance method calls,
(Foo/bar baz)
for static method calls,
(.-foo bar)
for instance field access and
Foo/bar
for static field access
i'm running open_jdk 1.8.0_172 and getting an error that it can't find jfxrt.jar
> FileNotFoundException: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.172-9.b11.fc28.x86_64/jre/lib/ext/jfxrt.jar (No such file or directory)
but
> find / -name jfxrt.jar
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.172-9.b11.fc28.x86_64/jre/lib/ext/jfxrt.jar
it seems to be there at the same path.