Fork me on GitHub
#clojure
<
2018-06-30
>
miner02:06:30

I blogged about my answer for the keypaths here http://conjobble.velisco.com/2018/06/01/keypaths.html

kevinludwig21:06:19

is there any difference between (. System getenv "LANG") and (. System (getenv "LANG"))?

kevinludwig21:06:13

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).

sundarj21:06:03

ah right, i see what you mean

bronsa22:06:34

they're identical

bronsa22:06:48

the preferred form is (System/getenv "LANG")

bronsa22:06:57

don't look at clojure.core for idiomatic clojure

bronsa22:06:27

there's no reason to use . directly

bronsa22:06:40

there's syntax sugar that's preferred

bronsa22:06:20

(.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

dpsutton22:06:49

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.

dpsutton22:06:46

anyone know how to remedy this?

bronsa22:06:57

is it readable by your user?

dpsutton22:06:39

i'm not sure. i just use dnf to install this from fedoras repos. let me check

dpsutton22:06:03

ah. it's root/root

dpsutton22:06:21

but open permissions across the board

dpsutton22:06:56

oh its a broken symlink. fun